#include<iostream.h>
#include<conio.h>
void main()
{
long int bil, a,b,c,pil,d;
char r;
do
{
cout<<" *******SELAMAT DATANG DI WARUNG BUK IJA*******"<<endl;
cout<<" SILAHKAN PILIH PAKET MENU YG ANDASUKA"<<endl;
cout<<endl;
cout<< "PAKET HEMAT (1) PAKET HEMAT (2) "<<endl;
cout<<"Nasi : Goreng Nasi : mawut "<<endl;
cout<<"Camilan : pisang goreng Camilan: pisang kodok "<<endl;
cout<<"Minum : es jeruk Minum : es sirup "<<endl;
cout<<"Harga : Rp 25000 Harga : RP30000 "<<endl;
cout<<endl;
cout<< "PAKET HEMAT (3) PAKET HEMAT (4) "<<endl;
cout<<"Nasi : uduk Nasi : jagung "<<endl;
cout<<"Camilan : Cilok Bakar Camilan: cilok "<<endl;
cout<<"Minum : soda Minum : es teler "<<endl;
cout<<"Harga : Rp 40000 Harga : RP 50000 "<<endl;
cout<<endl;
cout<<"silhkan pilih paket menu ?"<<endl;
cout<<"paket 1. Rp.25000( )"<<endl;
cout<<"paket 2. Rp.30000( )"<<endl;
cout<<"paket 3. Rp.40000( )"<<endl;
cout<<"paket 4. Rp.50000( )"<<endl;
cin>>bil;
cout<<"mau pesan berapa porsi ? : ";cin>>b;cout<<endl;
clrscr();
clrscr();
{
if(bil==1)
{
c=25*b;
cout<< 25000<<endl;
cout<< b;
cout<<"____"<<endl;
cout<< "Rp" ;
cout<< c ;
}
else
if(bil==2)
{
c=30000*b;
cout<< 30000<<endl;
cout<< b;
cout<<"____"<<endl;
cout<< "RP";
cout<< c ;
}
else
if(bil==3)
{
c=40000*b;
cout<< 40000<<endl;
cout<< b;
cout<<"____"<<endl;
cout<< "RP";
cout<< c ;
}
else
if(bil==4)
{
c=50000*b;
cout<< 50000<<endl;
cout<< b;
cout<<"____"<<endl;
cout<< "RP";
cout<< c;
}
cout<<endl;
cout<<" MAAF SEBELUM PESANAN DIANTAR LUNASI DAHULU "<<endl;
}
cout<<endl;
cout<<" Apakah anda ingin memesan lagi y/t ???"<<endl;
cin>>r;
clrscr();
}
while(r=='y');
cout<<"========================================================================"<<endl;
cout<<"= Terimakasih Anda sudah Kenak Tipu ="<<endl;
cout<<"========================================================================"<<endl;
}
0 komentar:
Posting Komentar