I Want To Share Source Code Program Cashier With C++
#include<iostream>
using namespace std;
int main (){
int kode,pri,jml,tot,byr,kbl;
char mad;
do
{
cout<<" CV MULTIMEDIO PLUS "<<endl;
cout<<" SOFTWARE HOUSE "<<endl;
cout<<" DENGAN TIM DEVELOPMENT LULUSAN TERBAIK "<<endl;
cout<<"Jl. KALIWARON No 58 Lantai 2 SURABAYA"<<endl;
cout<<"============================================"<<endl;
cout<<""<<endl;
cout<<"Pilih Jasa Harga"<<endl;
cout<<"1. Web Company Rp. 2.000.000"<<endl;
cout<<"2. Web Ecoomerce Rp. 10.000.000"<<endl;
cout<<"3. Android ecoomerce Rp. 16.000.000"<<endl;
cout<<"4. IOS Ecoomerce Rp. 20.000.000"<<endl;
cout<<"5. Kursus WEB Rp. 1.000.000"<<endl;
cout<<"6. Social Media Marketer Rp. 20.000"<<endl;
cout<<"7. maintanance Rp. 500.000"<<endl;
cout<<'\n'<<"MASUKKAN PILIHAN ANDA :";
cin>>kode;
switch (kode){
case 1:
cout<<'\n'<<"Web Company"<<endl;
pri=2000000;
cout<<"Masukkan Jumlah :";
cin>>jml;
tot=pri*jml;
cout<<"Total harganya yaitu : Rp. "<<tot<<endl;
cout<<"DIBAYAR : Rp. ";
cin>>byr;
kbl=byr-tot;
cout<<"KEMBALI : Rp. "<<kbl<<endl;
cout<<"Masih ada Y/T :";
cin>>mad;
break;
case 2:
cout<<'\n'<<"Web Ecoomerce"<<endl;
pri=10000000;
cout<<"Masukkan Jumlah :";
cin>>jml;
tot=pri*jml;
cout<<"Total harganya yaitu : Rp. "<<tot<<endl;
cout<<"DIBAYAR : Rp. ";
cin>>byr;
kbl=byr-tot;
cout<<"KEMBALI : Rp. "<<kbl<<endl;
cout<<"Masih ada Y/T :";
cin>>mad;
break;
case 3:
cout<<'\n'<<"Android ecoomerce"<<endl;
pri=16000000;
cout<<"Masukkan Jumlah :";
cin>>jml;
tot=pri*jml;
cout<<"Total harganya yaitu : Rp. "<<tot<<endl;
cout<<"DIBAYAR : Rp. ";
cin>>byr;
kbl=byr-tot;
cout<<"KEMBALI : Rp. "<<kbl<<endl;
cout<<"Masih ada Y/T :";
cin>>mad;
break;
case 4:
cout<<'\n'<<"IOS Ecoomerce"<<endl;
pri=21000000;
cout<<"Masukkan Jumlah :";
cin>>jml;
tot=pri*jml;
cout<<"Total harganya yaitu : Rp. "<<tot<<endl;
cout<<"DIBAYAR : Rp. ";
cin>>byr;
kbl=byr-tot;
cout<<"KEMBALI : Rp. "<<kbl<<endl;
cout<<"Masih ada Y/T :";
cin>>mad;
break;
case 5:
cout<<'\n'<<"Kursus WEB"<<endl;
pri=1000000;
cout<<"Masukkan Jumlah :";
cin>>jml;
tot=pri*jml;
cout<<"Total harganya yaitu : Rp. "<<tot<<endl;
cout<<"DIBAYAR : Rp. ";
cin>>byr;
kbl=byr-tot;
cout<<"KEMBALI : Rp. "<<kbl<<endl;
cout<<"Masih ada Y/T :";
cin>>mad;
break;
case 6:
cout<<'\n'<<"Social Media Marketer"<<endl;
pri=20000;
cout<<"Masukkan Jumlah :";
cin>>jml;
tot=pri*jml;
cout<<"Total harganya yaitu : Rp. "<<tot<<endl;
cout<<"DIBAYAR : Rp. ";
cin>>byr;
kbl=byr-tot;
cout<<"KEMBALI : Rp. "<<kbl<<endl;
cout<<"Masih ada Y/T :";
cin>>mad;
break;
case 7:
cout<<'\n'<<"maintanance"<<endl;
pri=500000;
cout<<"Masukkan Jumlah :";
cin>>jml;
tot=pri*jml;
cout<<"Total harganya yaitu : Rp. "<<tot<<endl;
cout<<"DIBAYAR : Rp. ";
cin>>byr;
kbl=byr-tot;
cout<<"KEMBALI : Rp. "<<kbl<<endl;
cout<<"Masih ada Y/T :";
cin>>mad;
break;
default:
cout<<"Kode yang anda masukkan tidak ada";
}
}
while (mad/='Y');
cout<<"Terimah Kasih Atas Kunjungan anda";
return 0;
}
}
0 Comments