#include <iostream.h>
#include <conio.h>
#include <stdio.h>
main()
{
char km,kp,pp[20],pm[200],lismen[100],inpt[3];
long int tb,jumbel,har;
clrscr();
cout<<" CAFE DecH"<<endl;
cout<<" MAKAN ENAK TANPA CAPEK DISINI AJA"<<endl;
cout<<" \n================================="<<endl;
cout<<"\n\nKode Menu [P/S] :";cin>>km;
cout<<"Kode Paket [1/2] :";cin>>kp;
cout<<"Jumlah Beli :";cin>>jumbel;
if(km=='p'||km=='P')
{
strcpy (pm,"Makan Pagi");
if(kp=='1')
{
strcpy(pp,"Paket 1");
strcpy(lismen,"BUBUR AYAM+SATE TELUR");
har=7000;
}
else
{
strcpy(pp,"Paket 2");
strcpy(lismen,"BUBUR KACANG IJO+ROTI");
har=5000;
}
}
else
{
strcpy (pm,"Makan Siang");
if(kp=='1')
{
strcpy(pp,"Paket 1");
strcpy(lismen,"NASI RENDANG+LALAPAN");
har=10000;
}
else
{
strcpy(pp,"Paket 2");
strcpy(lismen,"NASI AYAM+LALAPAN");
har=9000;
}
}
tb=har*jumbel;
cout<<" \n\n\n CAFE DecH"<<endl;
cout<<" MAKAN ENAK TANPA CAPEK DISINI AJA"<<endl;
cout<<" \n================================="<<endl;
cout<<"\n Pilihan Paket :"<<pp<<endl;
cout<<" Pilihan Menu :"<<pm<<endl;
cout<<" List Menu :"<<lismen<<endl;
cout<<" Harga :"<<har<<endl;
cout<<" Jumlah Beli :"<<jumbel<<endl;
cout<<" Total bayar :Rp. "<<tb<<endl;
cout<<" =========================="<<endl;
cout<<" input data lagi [y/t] :";cin>>inpt;
cout<<" \n T R I M A K A S I H"<<endl;
cout<<" =========================="<<endl;
getch();
}
#include <conio.h>
#include <stdio.h>
main()
{
char km,kp,pp[20],pm[200],lismen[100],inpt[3];
long int tb,jumbel,har;
clrscr();
cout<<" CAFE DecH"<<endl;
cout<<" MAKAN ENAK TANPA CAPEK DISINI AJA"<<endl;
cout<<" \n================================="<<endl;
cout<<"\n\nKode Menu [P/S] :";cin>>km;
cout<<"Kode Paket [1/2] :";cin>>kp;
cout<<"Jumlah Beli :";cin>>jumbel;
if(km=='p'||km=='P')
{
strcpy (pm,"Makan Pagi");
if(kp=='1')
{
strcpy(pp,"Paket 1");
strcpy(lismen,"BUBUR AYAM+SATE TELUR");
har=7000;
}
else
{
strcpy(pp,"Paket 2");
strcpy(lismen,"BUBUR KACANG IJO+ROTI");
har=5000;
}
}
else
{
strcpy (pm,"Makan Siang");
if(kp=='1')
{
strcpy(pp,"Paket 1");
strcpy(lismen,"NASI RENDANG+LALAPAN");
har=10000;
}
else
{
strcpy(pp,"Paket 2");
strcpy(lismen,"NASI AYAM+LALAPAN");
har=9000;
}
}
tb=har*jumbel;
cout<<" \n\n\n CAFE DecH"<<endl;
cout<<" MAKAN ENAK TANPA CAPEK DISINI AJA"<<endl;
cout<<" \n================================="<<endl;
cout<<"\n Pilihan Paket :"<<pp<<endl;
cout<<" Pilihan Menu :"<<pm<<endl;
cout<<" List Menu :"<<lismen<<endl;
cout<<" Harga :"<<har<<endl;
cout<<" Jumlah Beli :"<<jumbel<<endl;
cout<<" Total bayar :Rp. "<<tb<<endl;
cout<<" =========================="<<endl;
cout<<" input data lagi [y/t] :";cin>>inpt;
cout<<" \n T R I M A K A S I H"<<endl;
cout<<" =========================="<<endl;
getch();
}
Tidak ada komentar :
Posting Komentar