#include <iostream.h>
#include <conio.h>
#include <stdio.h>
main()
{
char nmpembeli[25],kdkue,jmlkue,*nmkue;
long hrg,jumbel,jumbay,total;
clrscr();
cout<<"DAFTAR MENU TOKO KUE
NIKMAT"<<endl;
cout<<"masukan kode
[1|2|3|4]:";cin>>kdkue;
cout<<"nama pembeli:";cin>>nmpembeli;
cout<<"kode kue
:"<<kdkue<<endl;
cout<<"jumlah kue
:"<<jmlkue<<endl;
{
if (kdkue=='1')
{nmkue="bolu black forest";
{nmkue="bolu black forest";
hrg=60000;}
else
if (kdkue=='2')
{nmkue="cheese cake";
{nmkue="cheese cake";
hrg=45000;}
else
if (kdkue=='3')
{nmkue="banana
cake";
hrg=25000;}
else
{nmkue="strawberry cake";
{nmkue="strawberry cake";
hrg=35000;}
}
clrscr();
cout<<" TOKO KUE NIKMAT"<<endl;
cout<<"struk pembayaran"<<endl;
cout<<"------------------------------"<<endl;
cout<<"nama
pembeli\t:"<<nmpembeli<<endl;
cout<<"kode
kue\t:"<<kdkue<<endl;
cout<<"nama
kue\t:"<<nmkue<<endl;
cout<<"harga kue\t:"<<hrg<<endl;
cout<<"jumlah beli\t:";cin>>jumbel;
cout<<"------------------------------"<<endl;
jumbay=(hrg*jumbel);
cout<<"jumlah
bayar\t:"<<jumbay<<endl;
cout<<"terima kasih atas
kunjungannya"<<endl;
getch();
}