#include"conio.h"
#include"stdio.h"
#include"iostream.h"
#include"iomanip.h"
main() { clrscr();
char np[15],kd,kls;
int jtd,jta,jrk,trf;
char *jur,*kl;
float harga,sb,pjk,tb;
cout<
cout<<" Kode Jurusan [1/2/3] : "; cin>>kd;
cout<<" Kode Kelas [A/B] : "; cin>>kls;
cout<<" Jumlah Tiket Dewasa : "; cin>>jtd;
cout<<" Jumlah Tiket Anak : "; cin>>jta;
if(kd=='1')
{ jur="Yogyakarta";
jrk=500;
if(kls=='A' || kls=='a')
{ trf=1000;
kl="Bisnis";}
else
{ trf=600;
kl="Ekonomi";}
}
else if(kd=='2')
{ jur="Bali";
jrk=650;
if(kls=='A' || kls=='a')
{ trf=1900;
kl="Bisnis";}
else
{ trf=1200;
kl="Ekonomi";}
}
else
{ jur="Kalimantan";
jrk=800;
if(kls=='A' || kls=='a')
{ trf=1870;
kl="Bisnis";}
else
{ trf=1500;
kl="Ekonomi";}
}
clrscr();
cout<
cout<
cout<
cout<
cout<
getch();
}
0 komentar