#include
#include
#include
main()
{
//Deklarasi variabel
char np[20],alm[50], ae[30], nh[15], kodekon[10], kodejen, jenis[10], judul[20],psn, lagi, um[44],nk[21], jdw[30];
long int jumbel, harga, tothar, totbay, ubay, ukem, diskon;
atas:
//Input
clrscr();
cout<
if(psn=='Y'||psn=='y')
clrscr();
cout<
cout<
//Percabangan
if (!strcmp(kodekon,"A")||!strcmp(kodekon,"a"))
{
strcpy(judul,"MAHER ZAIN");strcpy(jdw,"15 NOVEMBER 2015");
if (kodejen=='1')
{harga=2000000; strcpy(jenis,"VVIP");}
else
if (kodejen=='2')
{harga=1500000; strcpy(jenis,"VIP");}
else
if (kodejen=='3')
{harga=100000; strcpy(jenis,"TRIBUNE");}
else
if (kodejen=='4')
{harga=500000; strcpy(jenis,"FESTIVAL");}
else
{
cout<<"\tKode Kelas Yang Anda Masukan Salah, Ingin Input lagi"<
tothar=jumbel*harga;
if (jumbel>5)
{diskon = 0.5*tothar ;}
else
{diskon = 0 ;}
totbay=tothar-diskon;
//Output
clrscr();
cout<
if (ubay < totbay) { cout<<"\tUang ente kurang Cyn...."<
if (lagi=='Y' || lagi=='y')
{goto atas;}
getch();
}