April 20, 2010

Nama : Yulia Rachmawati
Nim : 12074254
Kelas : 12.6G.03.A

#include
#include
#include

main()
{
char kodemotor,type,*jenis;
int jumlahbeli;
long harga,total,uangbayar,kembali;

cout <<“Dealer Yulea Perez\n”;
cout <<“Lab c sore \n”;
cout <<“________________________\n”;
cout <>kodemotor;
cout <>type;
cout <>jumlahbeli;
cout <<“________________________\n”;

if (kodemotor == ‘A’|| kodemotor ==’a’)
{
jenis=”Yamaha”;
if (type==’1′)
{harga=12000000;}
else
if (type== ‘2’)
{harga=16000000;}
else
if (type== ‘3’)
{harga=21950000;}
}
else
if (kodemotor == ‘B’|| kodemotor ==’b’)
{
jenis=”Suzuki”;
if (type==’1′)
{harga=11000000;}
else
if (type== ‘2’)
{harga=13500000;}
else
if(type== ‘3’)
{harga=20000000;}
}
else
if(kodemotor == ‘C’|| kodemotor ==’c’)
{
jenis=”Honda”;
if (type==’1′)
{harga=10500000;}
else
if (type== ‘2’)
{harga=12000000;}
else
if(type== ‘3’)
{harga=22000000;}
}
cout <<“Merk Motor =”<<jenis<<endl;
cout <<“type Motor =”<<type<<endl;
cout <<“Harga Motor=”<<harga<<endl;
cout <<“———————–\n”;
total=jumlahbeli*harga;
cout <<“Total Bayar=”<<total<<endl;
cout <>uangbayar;
kembali=uangbayar-total;
cout <<“Kembali =Rp”<<kembali<<endl;
cout <<“——————–\n”;
cout <<“TERIMA KASIH\n”;
getch();
}

Hello world!

April 2, 2010

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!