#include <conio.h> NAMA : SULTAN#include <stdio.h> NPM : 2012.02.02.0.0035#include <iostream.h> KELAS : Bmain(){int i,jd,u...
cout<<"Input Jumlah Data : ";cin>>jd;for (i=1;i<=jd;i++){cout<<"———————————"<<endl;cout<<"Pilih Merek Cat [A/B/C] : ";cin>...
case 1:harga=15000;break;case 2:harga=18500;break;case 3:harga=22000;break;default:harga=0;break;}else{cout<<"nAnda salah ...
getch();}
Upcoming SlideShare
Loading in …5
×

Include sultan bru

71
-1

Published on

Published in: Travel, Business
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
71
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Include sultan bru

  1. 1. #include <conio.h> NAMA : SULTAN#include <stdio.h> NPM : 2012.02.02.0.0035#include <iostream.h> KELAS : Bmain(){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. 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. 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;elsecout<<"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;elsecout<<"n TERIMA KASIH BANYAK "<<endl;bawah:
  4. 4. getch();}

×