Demo image Demo image Demo image Demo image Demo image Demo image Demo image

[New] Tugas Kuliah C++

  • 15 Apr 2010
  • ips0101

  • #include
    #include
    #include

    main()
    {
    char tanya,album,debut,member[10],alamat[20],tlp[8],*release,*bahasa,*nama,*trak;
    int harga,total,bayar,kembali;
    float jum;
    lagi:

    cout<<"\t=======================================================\n";
    cout<<"\t CASSIOPEIA'S STORES \n";
    cout<<"\t BEST COLLECTION OF TVXQ/TOHOSHINKI'S ALBUMS \n";
    cout<<"\t Jl. taman cibodas Raya No. 20 Tangerang \n"; cout<<"\t Telp. (021)98274041 \n"; cout<<"\t======================================================\n
    cout<<"\tSelect Costumer Member =";gets(member); cout<<"\tCostumer Adress =";gets(alamat); cout<<"\tTelephone =";gets(tlp); cout<<"\tSelect TVXQ's Albums CD \n"; cout<<"\t1. Korean Albums \n"; cout<<"\t2. Japanese Albums \n"; cout<<"\t3. New single Albums \n"; cout<<"\tSelect Your Choose [k/j/s] =";cin>>album;
    cout<<"\t1. 1st Album \n"; cout<<"\t2. 2nd Album \n"; cout<<"\t3. 3rd Album \n"; cout<<"\t4. 4th Album \n"; cout<<"\tSelect Album Debut[1/2/3/4] =";cin>>debut;
    if(album=='k')

    {
    bahasa="korean";
    if(debut=='1')
    {
    nama="triangle";
    release="15 january 2004";
    trak="12 Track";
    harga=50000;
    }
    else
    if(debut=='2')
    {
    nama="rising sun";
    release="26 march 2006";
    trak="15 Track";
    harga=55000;
    }
    else
    if(debut=='3')
    {
    nama="o";
    release="15 february 2007";
    trak="13 Track";
    harga=60000;
    }
    else
    if(debut=='4')
    {
    nama="mirotic";
    release="26 september 2008";
    trak="18 Track";
    harga=80000;
    }
    }
    else
    if(album=='j')
    {
    bahasa="japanese";
    if(debut=='1')
    {
    nama="heart,mind and soul";
    release="23 march 2006";
    trak="14 Track";
    harga=50000;
    }
    else
    if(debut=='2')
    {
    nama="five in black";
    release="26 october 2007";
    trak="12 Track";
    harga=70000;
    }
    else
    if(debut=='3')
    {
    nama="t";
    release="25 april 2008";
    trak="15 Track";
    harga=75000;
    }
    else
    if(debut=='4')
    {
    nama="secret code";
    release="12 january 2009";
    trak="17 Track";
    harga=50000;
    }
    }
    else
    {
    bahasa="korean&japanese";
    if(debut=='1')
    {
    nama="stand by u";
    release="15 january 2009";
    trak="5 Track";
    harga=100000;
    }
    else
    if(debut=='2')
    {
    nama="melody and harmoni";
    release="29 september 2009";
    trak="4 Track";
    harga=100000;
    }
    else
    if(debut=='3')
    {
    nama="break out";
    release="13 january 2010";
    trak="4 Track";
    harga=150000;
    }
    else
    if(debut=='4')
    {
    nama="toki wo tomete";
    release="24 march 2010";
    trak="4 Track";
    harga=200000;
    }
    }
    cout<<"\t================================================================\n"; cout<<"\t ~PURCHASE ORDER~\n"; cout<<"\t================================================================\n"; cout<<"\tCostumer Members ="<<<<"\tCostumer Adress ="<<<<"\tTelephone ="<<<<"\t================================================================\n"; cout<<"\tAlbums Select \n"; cout<<"\tLanguage ="<<<<"\tAlbum/Single's Name ="<<<<"\tRelease Sale ="<<<<"\tTracklist ="<<<<"\tAlbum Cost ="<<<<"\t================================================================\n"; cout<<"\tPurchase/Buy =";cin>>jum;
    total=harga*jum;
    cout<<"\tTotal ="<<<<"\tPayment =";cin>>bayar;
    kembali=bayar-total;
    cout<<"\tRest Payment ="<<<<"\t================================================================\n"; cout<<"\t ~ALWAYS KEEP THE FAITH~ \n"; cout<<"\t================================================================\n"; cout<<"\tIngin Isi Lagi[Y/T] =";cin>>tanya;
    clrscr();
    if(tanya=='Y'||tanya=='y')
    goto lagi;
    else
    goto selesai;
    getch();
    selesai:
    }


    Nama : Indah Permata Sari

    Nim : 12074346/6G/Lab B


    0 komentar:

    Posting Komentar