SlideShare a Scribd company logo
1 of 4
#include <conio.h> NAMA : SULTAN
#include <stdio.h> NPM : 2012.02.02.0.0035
#include <iostream.h> KELAS : B
main()
{
int i,jd,uk,jmlah,total,harga;
char mc,lagi,enter;
atas:
clrscr();
cout<<"/t/tBOYCREATIONS"<<endl;
cout<<"/tPusat Penjualan Cat Tembok"<<endl;
cout<<"———————————"<<endl;
cout<<"/A. ICI Dulux"<<endl;
cout<< "1. Ukuran Kecil –> Rp. 15000/n";
cout<< "2. Ukuran Sedang –> Rp. 20000/n";
cout<< "3. Ukuran Besar –> Rp. 25000/n";
cout<<"/nB. Movilex VIP"<<endl;
cout<< "1. Ukuran Kecil > Rp. 13500/n";
cout<< "2. Ukuran Sedang > Rp. 17500/n";
cout<< "3. Ukuran Besar > Rp. 20000/n";
cout<<"/nC. Jotun Strax"<<endl;
cout<< "1. Ukuran Kecil –> Rp. 15000n";
cout<< "2. Ukuran Sedang –> Rp. 18500n";
cout<< "3. Ukuran Besar –> Rp. 22000n";
cout<<"———————————"<<endl;
cout<<"Input Jumlah Data : ";cin>>jd;
for (i=1;i<=jd;i++)
{
cout<<"———————————"<<endl;
cout<<"Pilih Merek Cat [A/B/C] : ";cin>>mc;
cout<<"Pilih Ukuran Kaleng [1/2/3] : ";cin>>uk;
if (mc=='A'||mc=='a')
switch(uk)
{
case 1:harga=15000;break;
case 2:harga=20000;break;
case 3:harga=25000;break;
default:harga=0;break;
}
else if (mc=='B'||mc=='b')
switch(uk)
{
case 1:harga=13500;break;
case 2:harga=17500;break;
case 3:harga=20000;break;
default:harga=0;break;
}
else if(mc=='C'||mc=='c')
switch(uk)
{
case 1:harga=15000;break;
case 2:harga=18500;break;
case 3:harga=22000;break;
default:harga=0;break;
}
else
{cout<<"nAnda salah memasukan kode cat (GUNAKAN HURUF KAPITAL)";
cout<<"nTEKAN (B) LALU ENTER UNTUK KEMBALI MENGHITUNG : ";cin>>enter;
if(enter=='B'||enter=='b')
goto atas;
else
cout<<"tDATA EROR";
goto bawah;}
cout<<"Harga Satuan Barang : Rp."<<harga<<endl;
cout<<"Jumlah Yang dibeli : ";cin>>jmlah;
total=(harga*jmlah);
cout<<"Harga yang harus dibayar : Rp."<<total<<endl;
cout<<"="<<endl;
}
cout<<"Ingin Hitung Lagi [Y/N] : ";cin>>lagi;
if (lagi=='Y'||lagi=='y')
goto atas;
else
cout<<"n TERIMA KASIH BANYAK "<<endl;
bawah:
getch();
}

More Related Content

Similar to Include sultan bru (7)

Algoritma 5 november wiwik p.l
Algoritma 5 november wiwik p.lAlgoritma 5 november wiwik p.l
Algoritma 5 november wiwik p.l
 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++
 
Laporan pd kelompok 6
Laporan pd kelompok 6Laporan pd kelompok 6
Laporan pd kelompok 6
 
Algo
AlgoAlgo
Algo
 
Struct
StructStruct
Struct
 
Ayam potong
Ayam potongAyam potong
Ayam potong
 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solving
 

Recently uploaded

Study Consultants in Lahore || 📞03094429236
Study Consultants in Lahore || 📞03094429236Study Consultants in Lahore || 📞03094429236
Study Consultants in Lahore || 📞03094429236
Sherazi Tours
 
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
Apsara Of India
 
BERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptxBERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptx
seri bangash
 

Recently uploaded (20)

Study Consultants in Lahore || 📞03094429236
Study Consultants in Lahore || 📞03094429236Study Consultants in Lahore || 📞03094429236
Study Consultants in Lahore || 📞03094429236
 
visa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa Consultantvisa consultant | 📞📞 03094429236 || Best Study Visa Consultant
visa consultant | 📞📞 03094429236 || Best Study Visa Consultant
 
08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men
08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men
08448380779 Call Girls In Bhikaji Cama Palace Women Seeking Men
 
Book Cheap Flight Tickets - TraveljunctionUK
Book  Cheap Flight Tickets - TraveljunctionUKBook  Cheap Flight Tickets - TraveljunctionUK
Book Cheap Flight Tickets - TraveljunctionUK
 
Genesis 1:6 || Meditate the Scripture daily verse by verse
Genesis 1:6  ||  Meditate the Scripture daily verse by verseGenesis 1:6  ||  Meditate the Scripture daily verse by verse
Genesis 1:6 || Meditate the Scripture daily verse by verse
 
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
High Profile 🔝 8250077686 📞 Call Girls Service in Siri Fort🍑
 
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
Night 7k Call Girls Noida Sector 93 Escorts Call Me: 8448380779
 
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
🔥HOT🔥📲9602870969🔥Prostitute Service in Udaipur Call Girls in City Palace Lake...
 
❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.
❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.
❤Personal Contact Number Varanasi Call Girls 8617697112💦✅.
 
ITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomadsITALY - Visa Options for expats and digital nomads
ITALY - Visa Options for expats and digital nomads
 
9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris
9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris
9 Days Kenya Ultimate Safari Odyssey with Kibera Holiday Safaris
 
BERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptxBERMUDA Triangle the mystery of life.pptx
BERMUDA Triangle the mystery of life.pptx
 
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort ServiceKanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
Kanpur Call Girls Service ☎ ️82500–77686 ☎️ Enjoy 24/7 Escort Service
 
Call Girls Service !! New Friends Colony!! @9999965857 Delhi 🫦 No Advance VV...
Call Girls Service !! New Friends Colony!! @9999965857 Delhi 🫦 No Advance  VV...Call Girls Service !! New Friends Colony!! @9999965857 Delhi 🫦 No Advance  VV...
Call Girls Service !! New Friends Colony!! @9999965857 Delhi 🫦 No Advance VV...
 
Call Girls Service !! Indirapuram!! @9999965857 Delhi 🫦 No Advance VVVIP 🍎 S...
Call Girls Service !! Indirapuram!! @9999965857 Delhi 🫦 No Advance  VVVIP 🍎 S...Call Girls Service !! Indirapuram!! @9999965857 Delhi 🫦 No Advance  VVVIP 🍎 S...
Call Girls Service !! Indirapuram!! @9999965857 Delhi 🫦 No Advance VVVIP 🍎 S...
 
DARK TRAVEL AGENCY presented by Khuda Bux
DARK TRAVEL AGENCY presented by Khuda BuxDARK TRAVEL AGENCY presented by Khuda Bux
DARK TRAVEL AGENCY presented by Khuda Bux
 
08448380779 Call Girls In Shahdara Women Seeking Men
08448380779 Call Girls In Shahdara Women Seeking Men08448380779 Call Girls In Shahdara Women Seeking Men
08448380779 Call Girls In Shahdara Women Seeking Men
 
08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men08448380779 Call Girls In Chhattarpur Women Seeking Men
08448380779 Call Girls In Chhattarpur Women Seeking Men
 
Hire 💕 8617697112 Chamba Call Girls Service Call Girls Agency
Hire 💕 8617697112 Chamba Call Girls Service Call Girls AgencyHire 💕 8617697112 Chamba Call Girls Service Call Girls Agency
Hire 💕 8617697112 Chamba Call Girls Service Call Girls Agency
 
A tour of African gastronomy - World Tourism Organization
A tour of African gastronomy - World Tourism OrganizationA tour of African gastronomy - World Tourism Organization
A tour of African gastronomy - World Tourism Organization
 

Include sultan bru

  • 1. #include <conio.h> NAMA : SULTAN #include <stdio.h> NPM : 2012.02.02.0.0035 #include <iostream.h> KELAS : B main() { int i,jd,uk,jmlah,total,harga; char mc,lagi,enter; atas: clrscr(); cout<<"/t/tBOYCREATIONS"<<endl; cout<<"/tPusat Penjualan Cat Tembok"<<endl; cout<<"———————————"<<endl; cout<<"/A. ICI Dulux"<<endl; cout<< "1. Ukuran Kecil –> Rp. 15000/n"; cout<< "2. Ukuran Sedang –> Rp. 20000/n"; cout<< "3. Ukuran Besar –> Rp. 25000/n"; cout<<"/nB. Movilex VIP"<<endl; cout<< "1. Ukuran Kecil > Rp. 13500/n"; cout<< "2. Ukuran Sedang > Rp. 17500/n"; cout<< "3. Ukuran Besar > Rp. 20000/n"; cout<<"/nC. Jotun Strax"<<endl; cout<< "1. Ukuran Kecil –> Rp. 15000n"; cout<< "2. Ukuran Sedang –> Rp. 18500n"; cout<< "3. Ukuran Besar –> Rp. 22000n"; cout<<"———————————"<<endl;
  • 2. cout<<"Input Jumlah Data : ";cin>>jd; for (i=1;i<=jd;i++) { cout<<"———————————"<<endl; cout<<"Pilih Merek Cat [A/B/C] : ";cin>>mc; cout<<"Pilih Ukuran Kaleng [1/2/3] : ";cin>>uk; if (mc=='A'||mc=='a') switch(uk) { case 1:harga=15000;break; case 2:harga=20000;break; case 3:harga=25000;break; default:harga=0;break; } else if (mc=='B'||mc=='b') switch(uk) { case 1:harga=13500;break; case 2:harga=17500;break; case 3:harga=20000;break; default:harga=0;break; } else if(mc=='C'||mc=='c') switch(uk) {
  • 3. case 1:harga=15000;break; case 2:harga=18500;break; case 3:harga=22000;break; default:harga=0;break; } else {cout<<"nAnda salah memasukan kode cat (GUNAKAN HURUF KAPITAL)"; cout<<"nTEKAN (B) LALU ENTER UNTUK KEMBALI MENGHITUNG : ";cin>>enter; if(enter=='B'||enter=='b') goto atas; else cout<<"tDATA EROR"; goto bawah;} cout<<"Harga Satuan Barang : Rp."<<harga<<endl; cout<<"Jumlah Yang dibeli : ";cin>>jmlah; total=(harga*jmlah); cout<<"Harga yang harus dibayar : Rp."<<total<<endl; cout<<"="<<endl; } cout<<"Ingin Hitung Lagi [Y/N] : ";cin>>lagi; if (lagi=='Y'||lagi=='y') goto atas; else cout<<"n TERIMA KASIH BANYAK "<<endl; bawah: