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

Algoritma 5 november wiwik p.l
Algoritma 5 november wiwik p.lAlgoritma 5 november wiwik p.l
Algoritma 5 november wiwik p.lWiwik Puji Lestarii
Β 
Tugas praktikukm pemrograman c++
Tugas praktikukm  pemrograman c++Tugas praktikukm  pemrograman c++
Tugas praktikukm pemrograman c++Dendi Riadi
Β 
Laporan pd kelompok 6
Laporan pd kelompok 6Laporan pd kelompok 6
Laporan pd kelompok 6phoe3
Β 
Struct
StructStruct
Structichal48
Β 
Assignement of programming & problem solving
Assignement of programming & problem solvingAssignement of programming & problem solving
Assignement of programming & problem solvingSyed Umair
Β 

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

Discover Mathura And Vrindavan A Spritual Journey.pdf
Discover Mathura And Vrindavan A Spritual Journey.pdfDiscover Mathura And Vrindavan A Spritual Journey.pdf
Discover Mathura And Vrindavan A Spritual Journey.pdfMathura Vrindavan Tour Packages
Β 
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 versemaricelcanoynuay
Β 
❀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πŸ’¦βœ….Nitya salvi
Β 
Study Consultants in Lahore || πŸ“ž03094429236
Study Consultants in Lahore || πŸ“ž03094429236Study Consultants in Lahore || πŸ“ž03094429236
Study Consultants in Lahore || πŸ“ž03094429236Sherazi Tours
Β 
πŸ’•πŸ“²09602870969πŸ’“Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
πŸ’•πŸ“²09602870969πŸ’“Girl Escort Services Udaipur Call Girls in Chittorgarh HaldighatiπŸ’•πŸ“²09602870969πŸ’“Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
πŸ’•πŸ“²09602870969πŸ’“Girl Escort Services Udaipur Call Girls in Chittorgarh HaldighatiApsara Of India
Β 
Hire πŸ’• 8617697112 Reckong Peo Call Girls Service Call Girls Agency
Hire πŸ’• 8617697112 Reckong Peo Call Girls Service Call Girls AgencyHire πŸ’• 8617697112 Reckong Peo Call Girls Service Call Girls Agency
Hire πŸ’• 8617697112 Reckong Peo Call Girls Service Call Girls AgencyNitya salvi
Β 
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Β ServiceDamini Dixit
Β 
πŸ”₯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
Β 
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 ConsultantSherazi Tours
Β 
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 SafarisKibera Holiday Safaris Safaris
Β 
Texas Tales Brenham and Amarillo Experiences Elevated by Find American Rental...
Texas Tales Brenham and Amarillo Experiences Elevated by Find American Rental...Texas Tales Brenham and Amarillo Experiences Elevated by Find American Rental...
Texas Tales Brenham and Amarillo Experiences Elevated by Find American Rental...Find American Rentals
Β 
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 nomadsMarco Mazzeschi
Β 
Visa Consultant in Lahore || πŸ“ž03094429236
Visa Consultant in Lahore || πŸ“ž03094429236Visa Consultant in Lahore || πŸ“ž03094429236
Visa Consultant in Lahore || πŸ“ž03094429236Sherazi Tours
Β 
Hire πŸ’• 8617697112 Champawat Call Girls Service Call Girls Agency
Hire πŸ’• 8617697112 Champawat Call Girls Service Call Girls AgencyHire πŸ’• 8617697112 Champawat Call Girls Service Call Girls Agency
Hire πŸ’• 8617697112 Champawat Call Girls Service Call Girls AgencyNitya salvi
Β 
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 MenDelhi Call girls
Β 
CYTOTEC DUBAI ☎️ +966572737505 } Abortion pills in Abu dhabi,get misoprostal ...
CYTOTEC DUBAI ☎️ +966572737505 } Abortion pills in Abu dhabi,get misoprostal ...CYTOTEC DUBAI ☎️ +966572737505 } Abortion pills in Abu dhabi,get misoprostal ...
CYTOTEC DUBAI ☎️ +966572737505 } Abortion pills in Abu dhabi,get misoprostal ...Abortion pills in Riyadh +966572737505 get cytotec
Β 
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 AgencyNitya salvi
Β 
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πŸ‘Damini Dixit
Β 
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 BuxBeEducate
Β 
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 MenDelhi Call girls
Β 

Recently uploaded (20)

Discover Mathura And Vrindavan A Spritual Journey.pdf
Discover Mathura And Vrindavan A Spritual Journey.pdfDiscover Mathura And Vrindavan A Spritual Journey.pdf
Discover Mathura And Vrindavan A Spritual Journey.pdf
Β 
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
Β 
❀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πŸ’¦βœ….
Β 
Study Consultants in Lahore || πŸ“ž03094429236
Study Consultants in Lahore || πŸ“ž03094429236Study Consultants in Lahore || πŸ“ž03094429236
Study Consultants in Lahore || πŸ“ž03094429236
Β 
πŸ’•πŸ“²09602870969πŸ’“Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
πŸ’•πŸ“²09602870969πŸ’“Girl Escort Services Udaipur Call Girls in Chittorgarh HaldighatiπŸ’•πŸ“²09602870969πŸ’“Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
πŸ’•πŸ“²09602870969πŸ’“Girl Escort Services Udaipur Call Girls in Chittorgarh Haldighati
Β 
Hire πŸ’• 8617697112 Reckong Peo Call Girls Service Call Girls Agency
Hire πŸ’• 8617697112 Reckong Peo Call Girls Service Call Girls AgencyHire πŸ’• 8617697112 Reckong Peo Call Girls Service Call Girls Agency
Hire πŸ’• 8617697112 Reckong Peo Call Girls Service Call Girls Agency
Β 
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
Β 
πŸ”₯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...
Β 
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
Β 
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
Β 
Texas Tales Brenham and Amarillo Experiences Elevated by Find American Rental...
Texas Tales Brenham and Amarillo Experiences Elevated by Find American Rental...Texas Tales Brenham and Amarillo Experiences Elevated by Find American Rental...
Texas Tales Brenham and Amarillo Experiences Elevated by Find American Rental...
Β 
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
Β 
Visa Consultant in Lahore || πŸ“ž03094429236
Visa Consultant in Lahore || πŸ“ž03094429236Visa Consultant in Lahore || πŸ“ž03094429236
Visa Consultant in Lahore || πŸ“ž03094429236
Β 
Hire πŸ’• 8617697112 Champawat Call Girls Service Call Girls Agency
Hire πŸ’• 8617697112 Champawat Call Girls Service Call Girls AgencyHire πŸ’• 8617697112 Champawat Call Girls Service Call Girls Agency
Hire πŸ’• 8617697112 Champawat Call Girls Service Call Girls Agency
Β 
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
Β 
CYTOTEC DUBAI ☎️ +966572737505 } Abortion pills in Abu dhabi,get misoprostal ...
CYTOTEC DUBAI ☎️ +966572737505 } Abortion pills in Abu dhabi,get misoprostal ...CYTOTEC DUBAI ☎️ +966572737505 } Abortion pills in Abu dhabi,get misoprostal ...
CYTOTEC DUBAI ☎️ +966572737505 } Abortion pills in Abu dhabi,get misoprostal ...
Β 
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
Β 
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πŸ‘
Β 
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
Β 

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: