#include <stdio.h>
#include <iostream.h>
#include <conio.h>
main()
{
char np[40],kdkue,*namakue;
float hrg,jumbel,jumbay;
cout<<" 1. Bolu Black Forest "<<endl;
cout<<" 2. Cheese Cake "<<endl;
cout<<" 3. Banana Cake "<<endl;
cout<<" 4. Strawbery Cake "<<endl;
cout<<"___________________________________"<<endl;
cout<<"Kode Kue [1|2|3|4] =";cin>>kdkue;
cout<<"Jumlah Kue =";cin>>jumbel;
switch(kdkue)
{case'1':
namakue="Bolu Black Forest";
hrg=60000;
break;
case'2':
namakue="Cheese Cake";
hrg=45000;
break;
case'3':
namakue="Banana Cake";
hrg=25000;
break;
case'4':
namakue="Strawbery Cake";
hrg=35000;
break;
cout<<"Anda Salah Masukan Kode"<<endl;
break;
}
cout<<"TOKO KUE NIKMAT"<<endl;
cout<<"Struk Pembayaran"<<endl;
cout<<"-----------------------------------"<<endl;
cout<<"Nama Pembeli\t="<<np<<endl;
cout<<"Kode Kue\t="<<kdkue<<endl;
cout<<"Nama Kue\t="<<namakue<<endl;
cout<<"Harga Kue\t=Rp."<<hrg<<endl;
cout<<"Jumlah Kue\t="<<jumbel<<endl;
cout<<"___________________________________"<<endl;
jumbay=hrg*jumbel;
cout<<"Jumlah Bayar\t="<<jumbay<<endl;
cout<<"Terima Kasih Atas Kunjungannya"<<endl;
getch();
}