#include<stdio.h>
#include<conio.h>
#include<iostream.h>
main( )
{
char kode,type,merk[15],jenis[15];
long harga,total;
int jumbel;
clrscr( );
cout<<"Kode Mobil : ";cin>>kode;
cout<<"Type Mobil : ";cin>>type;
cout<<"MAsukkan Jumlah Beli : ";cin>>jumbel;
if (kode=='T' || kode=='t')
{
strcpy(merk,"Toyota");
if (type=='S' || type =='s')
{
strcpy(jenis,"Sedan");
harga=125000000;
}
else if (type=='M' || type =='m')
{
strcpy(jenis,"Minibus");
harga=150000000;
}
}
else if (kode=='H' || kode=='h')
{
strcpy(merk,"Honda");
if (type=='S' || type =='s')
{
strcpy(jenis,"Sedan");
harga=130000000;
}
else if (type=='M' || type =='m')
{
strcpy(jenis,"Minibus");
harga=170000000;
}
}
else
{
cout<<"Salah Kode"<<endl;
}
total=harga*jumbel;
cout<<"------------------------"<<endl;
cout<<"Kode Mobil : "<<kode<<endl;
cout<<"Merk Mobil : "<<merk<<endl;
cout<<"type Mobil : "<<type<<endl;
cout<<"Jenis Mobil : "<<jenis<<endl;
cout<<"Harga Mobil : "<<harga<<endl;
cout<<"Jumlah Beli : "<<jumbel<<endl;
cout<<"Total Harga : "<<total<<endl;
getch();
}