#include<conio.h>
#include<stdio.h>
#include<iostream.h>
#include<string.h>
void main()
{
clrscr();
char mbl1[]="XENIA",
mbl2[]="APV",
mbl3[]="TERRIOS",
plt1[]="SIJAY ELSYAKIR",
plt2[]="NOPRI MAS BRO",
plt3[]="BURONAN MERTUO",
pkt1[]="HARIAN",
pkt2[]="BULANAN",
pkt3[]="BULANAN",
mbl[8],plt[20],pkt[10];
char pelatih[10],bbm[10],ttl[20],peserta[15],gender[4],alamat[20],
tinggi[3],kerja[10];
char x,y,nilai,lagi;
float bayar,paket,mobil,hari;
cout<<" <<<===PROGRAM KURSUS MENGEMUDI MOBIL ====>>>"<<endl;
cout<<" <<=PT MOBILINDO=>>\n\n\n";
puts("+++++++++++++++++++++ ***************************************");
puts("+ + * *");
puts("+ DAFTAR MOBIL + * DAFTAR HARGA *");
puts("+ 1. Xenia + * 1. Paket Harian *");
puts("+ 2. APV + * a. Xenia Rp. 50.000,- *");
puts("+ 3. Terrios + * b. APV Rp. 40.000,- *");
puts("+++++++++++++++++++++ * c. Terrios Rp. 30.000,- *");
puts("====================== * 2. Paket Mingguan *");
puts("= = * a. Xenia Rp. 300.000,- *");
puts("= PILIHAN PAKET = * b. APV Rp. 200.000,- *");
puts("= 1. Paket Harian = * c. Terrios Rp. 150.000,- *");
puts("= 2. Paket Mingguan = * 3. Paket Bulanan *");
puts("= 3. Paket Bulanan = * a. Xenia Rp. 1000.000,- *");
puts("= = * b. APV Rp. 900.000,- *");
puts("====================== * c. Terrios Rp. 800.000,- *");
puts(" ***************************************");
cout<<" INPUT DATA PESERTA"<<endl;
cout<<" Nama : ";cin>>peserta;
cout<<" Tempat Tanggal Lahir : ";cin>>ttl;
cout<<" Jenis Kelamin : ";cin>>gender;
cout<<" Alamat : ";cin>>alamat;
cout<<" Tinggi [cm] : ";cin>>tinggi;
cout<<" Pekerjaan : ";cin>>kerja;
atas:
cout<<" Mobil dipilih : ";cin>>mobil;
cout<<" Paket Yang dipilih : ";cin>>paket;
if(mobil==1)
{
strcpy(mbl,mbl1);
strcpy(plt,plt1);
if (paket==1)
{strcpy(pkt,pkt1);
cout<<" Jumlah Hari didaftar : ";cin>>hari;
bayar=hari*50000; }
else if (paket==2)
{strcpy(pkt,pkt2);
cout<<" Jumlah Minggu didaftar : ";cin>>hari;
bayar=300000*hari; }
else if(paket==3)
{strcpy(pkt,pkt3);
bayar=1000000;}
else; }
else if(mobil==2)
{strcpy(mbl,mbl2);
strcpy(plt,plt2);
if (paket==1)
{strcpy(pkt,pkt1);
cout<<" Jumlah Hari didaftar : ";cin>>hari;
bayar=hari*40000; }
else if (paket==2)
{strcpy(pkt,pkt2);
cout<<" Jumlah Minggu didaftar : ";cin>>hari;
bayar=200000*hari; }
else if(paket==3)
{strcpy(pkt,pkt3);
bayar=900000;}
else;}
else
{strcpy(mbl,mbl3);
strcpy(plt,plt3);
if (paket==1)
{strcpy(pkt,pkt1);
cout<<" Jumlah Hari didaftar : ";cin>>hari;
bayar=hari*30000; }
else if (paket==2)
{strcpy(pkt,pkt2);
cout<<" Jumlah Minggu didaftar : ";cin>>hari;
bayar=150000*hari; }
else if(paket==3)
{strcpy(pkt,pkt3);
bayar=800000;}
else;};
cout<<"\n Nilai yang diperoleh [A/B/C]: ";cin>>nilai;
if (nilai=='A'|| nilai=='a'|| nilai=='B' || nilai=='b')
{cout<<" Keterangan : LULUS"<<endl;
cout<<" Peserta Berhak Mendapat SIM\n\n"<<endl;}
else
{cout<<" Keterangan : TIDAKLULUS"<<endl;
cout<<"Apakah ingin melanjutkan kursus ? [Y/T] = ";cin>>lagi;
if (lagi=='y' || lagi=='Y')
goto atas;
else;}
cout<<" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n";
cout<<" ^ DATA PESERTA"<<endl;
cout<<" ^ Nama : "<<peserta<<endl;
cout<<" ^ Jenis Kelamin : "<<gender<<endl;
cout<<" ^ Tempat Tanggal Lahir : "<<ttl<<endl;
cout<<" ^ Alamat : "<<alamat<<endl;
cout<<" ^ Tinggi [cm] : "<<tinggi<<" cm"<<endl;
cout<<" ^ Pekerjaan : "<<kerja<<endl;
cout<<" ^ Mobil dipilih : "<<mbl<<endl;
cout<<" ^ Pelatih : "<<plt<<endl;
cout<<" ^ Paket Yang dipilih : "<<pkt<<endl;
cout<<" ^ Nilai : "<<nilai<<endl;
cout<<" ^"<<endl;
cout<<" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n";
cout<<" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"<<endl;
cout<<" % %"<<endl;
cout<<" % Total Bayar : "<<bayar<<" Rupiah %"<<endl;
cout<<" % %"<<endl;
cout<<" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"<<endl;
getch();
}
No comments:
Post a Comment