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

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
Β 
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
Β 
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
Β 
Top 10 Traditional Indian Handicrafts.pptx
Top 10 Traditional Indian Handicrafts.pptxTop 10 Traditional Indian Handicrafts.pptx
Top 10 Traditional Indian Handicrafts.pptxdishha99
Β 
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 OrganizationJuan Carlos Fonseca Mata
Β 
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 MenDelhi Call girls
Β 
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
Β 
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
Β 
Study Consultants in Lahore || πŸ“ž03094429236
Study Consultants in Lahore || πŸ“ž03094429236Study Consultants in Lahore || πŸ“ž03094429236
Study Consultants in Lahore || πŸ“ž03094429236Sherazi Tours
Β 
08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking Men08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking MenDelhi Call girls
Β 
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
Β 
Visa Consultant in Lahore || πŸ“ž03094429236
Visa Consultant in Lahore || πŸ“ž03094429236Visa Consultant in Lahore || πŸ“ž03094429236
Visa Consultant in Lahore || πŸ“ž03094429236Sherazi Tours
Β 
Night 7k to 12k Daman Call Girls πŸ‘‰πŸ‘‰ 8617697112⭐⭐ 100% Genuine Escort Service ...
Night 7k to 12k Daman Call Girls πŸ‘‰πŸ‘‰ 8617697112⭐⭐ 100% Genuine Escort Service ...Night 7k to 12k Daman Call Girls πŸ‘‰πŸ‘‰ 8617697112⭐⭐ 100% Genuine Escort Service ...
Night 7k to 12k Daman Call Girls πŸ‘‰πŸ‘‰ 8617697112⭐⭐ 100% Genuine Escort Service ...Nitya salvi
Β 
❀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
Β 
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
Β 
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-..."Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...Ishwaholidays
Β 
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: 8448380779Delhi Call girls
Β 
Book Cheap Flight Tickets - TraveljunctionUK
Book  Cheap Flight Tickets - TraveljunctionUKBook  Cheap Flight Tickets - TraveljunctionUK
Book Cheap Flight Tickets - TraveljunctionUKTravel Juncation
Β 

Recently uploaded (20)

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
Β 
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
Β 
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
Β 
Top 10 Traditional Indian Handicrafts.pptx
Top 10 Traditional Indian Handicrafts.pptxTop 10 Traditional Indian Handicrafts.pptx
Top 10 Traditional Indian Handicrafts.pptx
Β 
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
Β 
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
Β 
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
Β 
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 ...
Β 
Study Consultants in Lahore || πŸ“ž03094429236
Study Consultants in Lahore || πŸ“ž03094429236Study Consultants in Lahore || πŸ“ž03094429236
Study Consultants in Lahore || πŸ“ž03094429236
Β 
08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking Men08448380779 Call Girls In Chirag Enclave Women Seeking Men
08448380779 Call Girls In Chirag Enclave Women Seeking Men
Β 
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
Β 
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...
Β 
Visa Consultant in Lahore || πŸ“ž03094429236
Visa Consultant in Lahore || πŸ“ž03094429236Visa Consultant in Lahore || πŸ“ž03094429236
Visa Consultant in Lahore || πŸ“ž03094429236
Β 
Night 7k to 12k Daman Call Girls πŸ‘‰πŸ‘‰ 8617697112⭐⭐ 100% Genuine Escort Service ...
Night 7k to 12k Daman Call Girls πŸ‘‰πŸ‘‰ 8617697112⭐⭐ 100% Genuine Escort Service ...Night 7k to 12k Daman Call Girls πŸ‘‰πŸ‘‰ 8617697112⭐⭐ 100% Genuine Escort Service ...
Night 7k to 12k Daman Call Girls πŸ‘‰πŸ‘‰ 8617697112⭐⭐ 100% Genuine Escort Service ...
Β 
❀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πŸ’¦βœ….
Β 
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
Β 
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-..."Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
"Embark on the Ultimate Adventure: Top 10 Must-Visit Destinations for Thrill-...
Β 
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
Β 
Book Cheap Flight Tickets - TraveljunctionUK
Book  Cheap Flight Tickets - TraveljunctionUKBook  Cheap Flight Tickets - TraveljunctionUK
Book Cheap Flight Tickets - TraveljunctionUK
Β 

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: