#include <cstdlib>
#include <iostream>
#include <conio.h>
#include <stdio.h>
using namespace std;
int main(int argc, char *argv[])
{
char pembelian;
int kode, porsi, jumlah, banyak,input,pilih;
long int total, bayar, bayarnya, harga, duit, kembalian, kurang;
mulai:
cout<<"=================((ANNYEONGHASEYO))=================\n";
cout<<"=====================Korean Food====================\n";
cout<<"========Kelompok Ayu Dwi Dena Neri Risni============\n";
cout<<"\n";
cout<<"================Menu Eumsig (Makanan)================\n";
cout<<"1. Bibimbap\n";
cout<<"2. Kimbap\n";
cout<<"3. Kimchi\n";
cout<<"4. Bulgogi\n";
cout<<"5. Japchae\n";
cout<<"6. Tteok\n";
cout<<"7. Jeongol\n";
cout<<"8. Doenjang Jjigae\n";
cout<<"9. Hoedeopbap\n";
cout<<"10. Ramyeon\n";
cout<<"\n";
cout<<"================Menu Eumlyosu (Minuman)===============\n";
cout<<"11. Soju\n";
cout<<"12. Mekju\n";
cout<<"===================Bill Korean Food===================\n";
cout<<"\n";
cout<<"Jumlah Menu yang Dipesan = "; cin>>banyak;
jumlah=1;
bayar=0;
for(jumlah=1;jumlah<=banyak;jumlah++){
ulang:
cout<<"\n\nMasukan Kode Menu = "; cin>>kode;
cout<<"\n";
if(kode==1){
cout<<"Nama Makanan = Bibimbap\n";
cout<<"Harga = Rp. 10.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga = 10000;
total = harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==2){
cout<<"Nama Makanan = Kimbap\n";
cout<<"Harga = Rp. 7.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=7000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==3){
cout<<"Nama Makanan = Kimchi\n";
cout<<"Harga = Rp. 5.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=5000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==4){
cout<<"Nama Makanan = Bulgogi\n";
cout<<"Harga = Rp. 12.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=12000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==5){
cout<<"Nama Makanan = Japchae\n";
cout<<"Harga = Rp. 8.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=8000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==6){
cout<<"Nama Makanan = Tteok\n";
cout<<"Harga = Rp. 6.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=6000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==7){
cout<<"Nama Makanan = Jeongol\n";
cout<<"Harga = Rp. 13.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=13000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==8){
cout<<"Nama Makanan = Doenjang Jjigae\n";
cout<<"Harga = Rp. 18.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=18000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==9){
cout<<"Nama Makanan = Hoedeopbap\n";
cout<<"Harga = Rp. 16.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=16000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==10){
cout<<"Nama Makanan = Ramyeon\n";
cout<<"Harga = Rp. 25.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=25000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==11){
cout<<"Nama Makanan = Soju\n";
cout<<"Harga = Rp. 15.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=15000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else if(kode==12){
cout<<"Nama Makanan = Mekju\n";
cout<<"Harga = Rp. 19.000'-\n";
cout<<" Jumlah Porsi = "; cin>>porsi;
harga=19000;
total=harga*porsi;
cout<<"Total Harga Rp. "<<total;
cout<<"\n";
}else{
cout<<"-Invalid Number-\a";
goto ulang;
} bayar=bayar+total;
}
ulangBayar:
cout<<"\nTotal Bayar\t\t = Rp. "<<bayar<<",-";
cout<<"\n\nMasukan Pembayaran Rp. "; cin>>bayarnya;
if(bayarnya>bayar){
kembalian=bayarnya - bayar;
cout<<"\n Cash Back\t Rp. "<<kembalian<<",-";
cout<<"\n";
} else if(bayarnya<bayar){
kurang=bayar-bayarnya;
cout<<"\n\n\nMaaf Uang Anda Kurang Rp."<<kurang<<",-";
cout<<"\n\nPilihan:";
cout<<"\n\n1. Bayar Lagi";
cout<<"\n\n2. Simpan KTP,SIM,AKTA,Kartu Pelajar";
cout<<"\n\n3. Cuci Piring";
cout<<"\n";
cout<<"\n\nPilihan Anda : "; cin>>pilih;
if(pilih==1){
cout<<"\n\nSilahkan Bayar Lagi";
goto ulangBayar;
}
if(pilih==2){
cout<<"\n\nSilahkan Simpan KTP,SIM,AKTA,Kartu Pelajar";
cout<<"\n\nDan Nanti Bisa Diambil Kembali Setelah Lunas pembayaran";
}
if(pilih==3){
cout<<"\n\nSilahkan Cuci Piring Dan Bersih-Bersih Di Dapur Kami :)";
}
}
cout<<"\n\n\n\t\t\t((((GAMSAHAMNIDA))))";
lagi:
cout<<"\n\n\n\n\nPembelian Baru [1]\n\n";
cout<<"Akhiri Program [2]\n\n\n\n\n";
cout<<"Pilih Perintah "; cin>>input;
cout<<"\n";
if(input==1){
cout<<"Pembelian Baru\n";
goto mulai;
cout<<"\n";
}else if(input==2){
cout<<"\n\n\t\t\tProgram Logging Off...";
cout<<"\n";
}
else{
cout<<"-Invalid Number-\a";
goto lagi;
}
system("PAUSE");
return EXIT_SUCCESS;
}
follow me in Twitter Devia N <= (Just Klik)
add me in Facebook Devia N <= (Just Klik)
Tidak ada komentar:
Posting Komentar