#include <conio.h>
#include <cstdlib>
using namespace std;
int main()
{system ("color a");
float harga, biaya, jumlah, jawab;
int jum_bayar, bayar, kembalian;
int paket;
cout<<" ----------------------------------------------------------------"<<endl;
cout<<"| |"<<endl;
cout<<"| E-ANGKRINGAN[dot]COM |"<<endl;
cout<<"| Mengatasi masalah ke laparan saat hujan, Kami siap ANTAR !! |"<<endl;
cout<<"| |"<<endl;
cout<<" ----------------------------------------------------------------"<<endl<<endl;
cout<<"MENU PAKET: "<<endl;
cout<<"1. Nasi Super + Teh "<<endl;
cout<<"2. Nasi Goreng + Teh "<<endl;
cout<<"3. Sego Kucing + Teh "<<endl<<endl;
cout<<"Tipe Paket [ 1/2/3 ] = "; cin>>paket;
switch(paket)
{
case 1:
case 'a' :
harga=28000;
cout<<"Jumlah yang ingin di pesan = "; cin>>jumlah;
cout<<endl<<endl;
biaya=harga*jumlah;
cout<<" ----------------------------------------------------------------"<<endl;
cout<<"| |"<<endl;
cout<<"| E-ANGKRINGAN[dot]COM |"<<endl;
cout<<"| Mengatasi masalah ke laparan saat hujan, Kami siap ANTAR !! |"<<endl;
cout<<"| |"<<endl;
cout<<" ----------------------------------------------------------------"<<endl<<endl;
cout<<"RINCIAN PEMBAYARAN: "<<endl;
cout<<"Menu Paket = "<<paket<<endl;
cout<<"Jumlah = "<<jumlah<<endl;
cout<<" ------------ x"<<endl;
cout<<"Grand Total = "<<biaya<<endl;
cout<<"Bayar = "; cin>>bayar; kembalian=bayar-biaya;
cout<<" --------------"<<endl;
cout<<"Uang Kembalian = "<<kembalian<<endl<<endl;
cout<<"Terimakasih Sudah memesan di e-angkringan"<<endl;
break;
case 2:
case 'b' :
harga=15000;
cout<<"Jumlah yang ingin di pesan = "; cin>>jumlah;
cout<<endl<<endl;
biaya=harga*jumlah;
cout<<" ----------------------------------------------------------------"<<endl;
cout<<"| |"<<endl;
cout<<"| E-ANGKRINGAN[dot]COM |"<<endl;
cout<<"| Mengatasi masalah ke laparan saat hujan, Kami siap ANTAR !! |"<<endl;
cout<<"| |"<<endl;
cout<<" ----------------------------------------------------------------"<<endl<<endl;
cout<<"RINCIAN PEMBAYARAN: "<<endl;
cout<<"Menu Paket = "<<paket<<endl;
cout<<"Jumlah = "<<jumlah<<endl;
cout<<" ------------ x"<<endl;
cout<<"Grand Total = "<<biaya<<endl;
cout<<"Bayar = "; cin>>bayar; kembalian=bayar-biaya;
cout<<" --------------"<<endl;
cout<<"Uang Kembalian = "<<kembalian<<endl<<endl;
cout<<"Terimakasih Sudah memesan di e-angkringan"<<endl;
break;
case 3:
case 'c' :
harga=10000;
cout<<"Jumlah yang ingin di pesan = "; cin>>jumlah;
cout<<endl<<endl;
biaya=harga*jumlah;
cout<<" ----------------------------------------------------------------"<<endl;
cout<<"| |"<<endl;
cout<<"| E-ANGKRINGAN[dot]COM |"<<endl;
cout<<"| Mengatasi masalah ke laparan saat hujan, Kami siap ANTAR !! |"<<endl;
cout<<"| |"<<endl;
cout<<" ----------------------------------------------------------------"<<endl<<endl;
cout<<"RINCIAN PEMBAYARAN: "<<endl;
cout<<"Menu Paket = "<<paket<<endl;
cout<<"Jumlah = "<<jumlah<<endl;
cout<<" ------------ x"<<endl;
cout<<"Grand Total = "<<biaya<<endl;
cout<<"Bayar = "; cin>>bayar; kembalian=bayar-biaya;
cout<<" --------------"<<endl;
cout<<"Uang Kembalian = "<<kembalian<<endl<<endl;
cout<<"Terimakasih Sudah memesan di e-angkringan"<<endl;
break;
default:
cout<<"Maaf !! Pilihan Anda Salah! Silahkan Pilih Menu yang tersedia !"<<endl;
break;
}
char LG;
cout<<"\n \n\n Apakah anda ingin kembali memesan? [ Y/T ] ?";cin>>LG;
if (LG=='Y' || LG=='y')main();
else if (LG=='T' || LG=='t') goto x;
x:
cout<<"\t \t Terima Kasih Sudah Mencoba\n";
cout<<"\t Kami Thedi, Ridho, Firman, Agus Mengucapkan"<<endl;
cout<<"\t \t \t Terima Kasih";
}
KASIR
Tidak ada komentar:
Posting Komentar