• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Include sultan bru
 

Include sultan bru

on

  • 145 views

 

Statistics

Views

Total Views
145
Views on SlideShare
145
Embed Views
0

Actions

Likes
1
Downloads
0
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Include sultan bru Include sultan bru Document Transcript

    • #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;
    • 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;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:
    • getch();}