#include
#include
#include
void proses_data(void);
void HP_TYPE1(void);
void HP_TYPE2(void);
void HP_TYPE3(void);
void HP_TYPE4(void);
void HP_TYPE5(void);
void HP_TYPE6(void);
void input_data(void);
void input_lagi(void);
char data[8][20]={"Blackberry", "Croos", "Hitech", "Motorolla", "Nokia", "Samsung"};
char cari[20];
char pilih, pilih1;
int low, high, posisi;
float posisi1;
int N=6, flag=0;
int no[10] = {1, 2, 3, 4, 5};
char jawaban;
int Y, T;
int SGT = 7000000, SGM = 4500000, SC = 1600000, SS = 1400000, SL = 700000;
int BT = 5000000, BS = 4500000, BB = 3200000, BJ = 2900000, BG = 220000;
int HBS = 4000000, HW = 2500000, HS = 1200000, HA = 3900000, HK = 800000;
int CX = 2000000, CC = 1500000, CI = 1200000, C9 = 1900000, CM = 200000;
int N7 = 3000000, N6 = 2400000, N3 = 1700000, N73 = 1300000, N70 = 1100000;
int ME = 1900000, MS = 1400000, MC = 1200000, ML = 900000, MK = 200000;
int total, bayar, kembali, CLB;
int Harga1, Harga2, Harga3, Harga4, Harga5;
main()
{
cout<<"*******************************************************************************"<
cout<
else if(*data[posisi] < *cari) low = posisi+1;
}
while(*cari >= *data[low] && *cari<= *data[high]);
if(flag==1)
{
cout<<"Merk Ditemukan"<
cout<
break;
}
}
else
{
cout<<"Merk Tidak Ditemukan"<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung galaxy tab"<
Harga1=CLB*SGT;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung galaxy mini"<
Harga2=CLB*SGM;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung Corby"<
Harga3=CLB*SC;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung Slim"<
Harga4=CLB*SS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung L200"<
Harga5=CLB*SL;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Torch"<
Harga1=CLB*BT;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Strom"<
Harga2=CLB*BS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Bold"<
Harga3=CLB*BB;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Javelin"<
Harga4=CLB*BJ;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Gemini"<
Harga5=CLB*BG;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech Cyber Shoot"<
Harga1=CLB*HBS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech Walkman"<
Harga2=CLB*HW;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech S5000"<
Harga3=CLB*HS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech Android"<
Harga4=CLB*HA;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech K200"<
Harga5=CLB*HK;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos XXX"<
Harga1=CLB*CX;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos CST"<
Harga2=CLB*CC;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos ISL"<
Harga3=CLB*CI;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos 9000"<
Harga4=CLB*C9;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos MNS"<
Harga5=CLB*CM;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia E72"<
Harga1=CLB*N7;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia E63"<
Harga2=CLB*N6;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia C3"<
Harga3=CLB*N3;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia N73"<
Harga4=CLB*N73;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia N70"<
Harga5=CLB*N70;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla ELJI"<
Harga1=CLB*ME;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla STAR"<
Harga2=CLB*MS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla ELJI C++"<
Harga3=CLB*MC;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla LOOVE"<
Harga4=CLB*ML;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla K502"<
Harga5=CLB*MK;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
switch(pilih1)
{
case 'Y':
input_data();
break;
case 'T':
break;
default:
cout<
cout<
cout<
#include
#include
#include
void data_sekolah (void);
void murid_sekolah (void);
void sekolah_class (void);
void nama_murid (void);
void input_data (void);
void input_lagi (void);
void proses_data (void);
char data[5][5]={"FT", "PT", "ST", "TT"};
char cari[5];
char pilih, pilih1;
int low, high, posisi;
float posisi1;
int N=4, flag=0;
int N1,N2, N3, N4, N5, N6, N7, N8, N9, N10, Nt;
main ()
{
cout<<" DAFTAR DATA SEKOLAH MENENGAH PERTAMA "<
cout<
else if(*data[posisi] < *cari) low = posisi+1;
}
while(*cari >= *data[low] && *cari<= *data[high]);
if(flag==1)
{
cout<<"Daftar Ditemukan"<
cout<
break;
}
}
else
{
cout<<" Daftar Tidak ada "<
switch(pilih1)
{
case 'Y':
input_data();
break;
case 'T':
break;
default:
cout<
cout<
cout<
cout<<" Penjawab Soal : Chandra "<
cout<<" Penjawab soal : Chandra "<
cout<<" Pejawab soal : Hendra " <
cout<<" Penjawab Soal : Budi " <
cout<<" Penjawab soal : Hendra " <
cout<<" Penjawab Soal : Susi "<
cout<<" Penjawab Soal : Susi "<
cout<<" Penjawab Soal : Chandra "<
cout<<" Penjawab Soal : Budi "<
cout<<" Penjawab Soal : Budi "<
cout<<" Penjawab Soal : Emon "<
cout<<" Penjawab Soal : Lisa "<
cout<<" Penjawab Soal : Sandra " <
cout<<" Penjawab Soal : santi " <
cout<<" Penjawab Soal : Lisa " <
cout<<" Penjawab Soal : Emon "<
cout<<" Penjawab soal : santi "<
cout<<" Penjawab Soal : Sandra " <
cout<<" Penjawab Soal : Santi "<
cout<<" Penjawab Soal : Emon "<
cout<<" Penjawab Soal : Winda "<
cout<<" Penjawab Soal : Anisa "<
if (jwb == 'c')
{
cout<<" Your Answer is : Right. Click enter to continue."<
cout<<" Penjawab Soal : Anisa "<
cout<<" Penjawab soal : Acik "<
cout<<" Penjawab Soal : Acik "<
cout<<" Penjawab Soal : Wanda "<
cout<<" Penjawab soal : Winda "<
cout<<" Penjawab Soal : Acik "<
cout<<" Penjawab Soal : Wanda " <
#include
#include
using namespace std;
main()
{
int data[6]= {5,3,2,1,6,4};
int cari,tmp,a,b;
int N=6;
int flag=0;
int AQ,CL,AQS,SW,CLB,AQC,H,U,K;
cout<<"|****************************************************************|\n";
cout<<"|PROGRAM PENCARIAN AIR MINERAL DI KAWASAN GUDANG INDUSTRI GRESIK |\n";
cout<<"|****************************************************************|\n\n";
cout<<" 1. Aqua Galon\n";
cout<<" 2. Cleo Galon\n";
cout<<" 3. Aquase Galon\n";
cout<<" 4. Swa Galon\n";
cout<<" 5. Club Galon\n";
cout<<" 6. Aquacui Galon\n\n\n\n";
for(a=0;a<6;a++)//Rumus Sorting
{
for(b=a+1;b<6;b++)
{
if(data[a]>=data[b])
{
tmp=data[a];
data[a]=data[b];
data[b]=tmp;
}
}
cout<<" "<<<" ";
}
cout<<"\n\n\nMasukkan Kode Barang Yang Anda Butuhkan : ";cin>>cari;
if(cari==1)
{
cout<<" Aqua Galon\n";
}
if(cari==2)
{
cout<<" Cleo Galon\n";
}
if(cari==3)
{
cout<<" Aquase Galon\n";
}
if(cari==4)
{
cout<<" Swa Galon\n";
}
if(cari==5)
{
cout<<" Club Galon\n";
}
if(cari==6)
{
cout<<" Aquacui Galon\n";
}
for(int a=0;a<6;a++)//Rumus Searching
{
if (data[a]==cari) flag=1;
}
if(flag==1)
{
cout<<"\nbarang ada\n\n\n";
}
else
{
cout<<"\nmaaf barang yang anda cari tidak ada!\n\n\n";
}
switch(cari)
{
case 1:
cout<<"Aqua galon\n";
cout<<"==========\n";
cout<<"Harga = Rp 11000\n";
cout<<"Anda mau beli berapa galon?=";cin>>AQ;
H=AQ*11000;
cout<<"jumlah harga = "<
if(U>H)
{
K=U-H;
cout<<"kembali ="<
}
else if(U==H)
{
cout<<"Uang anda pas\n";
}
else
{
K=H-U;
cout<<"Uang anda kurang :"<
cout<<"==========\n";
cout<<"Harga = Rp 10000\n";
cout<<"Anda mau beli berapa galon?=";cin>>CL;
H=CL*10000;
cout<<"jumlah harga = "<
if(U>H)
{
K=U-H;
cout<<"kembali ="<
}
else if(U==H)
{
cout<<"Uang anda pas\n";
}
else
{
K=H-U;
cout<<"Uang anda kurang :"<
cout<<"============\n";
cout<<"Harga = Rp 9000\n";
cout<<"Anda mau beli berapa galon?=";cin>>AQS;
H=AQS*9000;
cout<<"jumlah harga = "<
if(U>H)
{
K=U-H;
cout<<"kembali ="<
}
else if(U==H)
{
cout<<"Uang anda pas\n";
}
else
{
K=H-U;
cout<<"Uang anda kurang :"<
cout<<"=========\n";
cout<<"Harga = Rp 8000\n";
cout<<"Anda mau beli berapa galon?=";cin>>SW;
H=SW*8000;
cout<<"jumlah harga = "<
if(U>H)
{
K=U-H;
cout<<"kembali ="<
}
else if(U==H)
{
cout<<"Uang anda pas\n";
}
else
{
K=H-U;
cout<<"Uang anda kurang :"<
cout<<"==========\n";
cout<<"Harga = Rp 8500\n";
cout<<"Anda mau beli berapa galon?=";cin>>CLB;
H=CLB*8500;
cout<<"jumlah harga = "<
if(U>H)
{
K=U-H;
cout<<"kembali ="<
}
else if(U==H)
{
cout<<"Uang anda pas\n";
}
else
{
K=H-U;
cout<<"Uang anda kurang :"<
cout<<"=============\n";
cout<<"Harga = Rp 8000\n";
cout<<"Anda mau beli berapa galon?=";cin>>AQC;
H=AQC*8000;
cout<<"jumlah harga = "<
if(U>H)
{
K=U-H;
cout<<"kembali ="<
}
else if(U==H)
{
cout<<"Uang anda pas\n";
}
else
{
K=H-U;
cout<<"Uang anda kurang :"<
}
#include
#include
#include
void proses_data(void);
void input_data(void);
void input_lagi(void);
char data[47][15]={"ABULU", "BABAT", "BANGKALAN", "BANYUWANGI", "BATU", "BESUKI", "BLITAR",
"BOJONEGORO", "BONDOWOSO", "CARUBAN", "GEMPOL", "GRESIK", "JEMBER",
"JOMBANG", "KEDIRI", "KEPANJEN", "KERTOSONO", "KRAKSAAN", "LAMONGAN",
"LUMAJANG", "MADIUN", "MAGETAN", "MALANG", "MOJOKERTO", "MUNCAR", "NGANJUK",
"NGAWI", "PACITAN", "PAMEKASAN", "PANDAAN", "PARE", "PASURUAN", "PONOROGO",
"PRAJEKAN", "PROBOLINGGO", "PUGER", "SAMPANG", "SANGKAPURA", "SIDOARJO",
"SITUBONDO", "SUKOSARI", "SUMENEP", "SURABAYA", "TRENGGAJEK", "TUBAN",
"TULUNGANGGUNG", "WLINGI"};
char kode[47][15]={"0336", "0322", "031", "0333", "0341", "0338", "0342", "0353", "0332", "0351",
"0343", "031", "0331", "0321", "0354", "0341", "0358", "0335", "0322", "0334",
"0351", "0351", "0341", "0321", "0333", "0358", "0351", "0357", "0324", "0343",
"0354", "0343", "0352", "0332", "0335", "0336", "0323", "0325", "031", "0338",
"0332", "0328", "031", "0355", "0356", "0355", "0342"};
char cari[20];
char pilih, pilih1;
int low, high, posisi;
float posisi1;
int N=47, flag=0;
main()
{
char nama[20] = {"RISKY ASVIN WELVART"};
int nim[20] = {1018004};
cout<<"NAMA : "<
cout<
else if(*data[posisi] < *cari) low = posisi+1;
}
while(*cari >= *data[low] && *cari<= *data[high]);
if(flag==1)
{
cout<<"Data Ditemukan"<
cout<
break;
}
}
else
{
cout<<"Data Tidak Ditemukan"<
switch(pilih1)
{
case 'Y':
input_data();
break;
case 'T':
break;
default:
cout<
cout<
cout<
#include
#include
#include
void proses_data(void);
void HP_TYPE1(void);
void HP_TYPE2(void);
void HP_TYPE3(void);
void HP_TYPE4(void);
void HP_TYPE5(void);
void HP_TYPE6(void);
void input_data(void);
void input_lagi(void);
char data[8][30]={"BUKU SEKOLAH ANAK TK", "BUKU SEKOLAH ANAK SD", "BUKU SEKOLAH ANAK SMP", "BUKU SEKOLAH ANAK SMU", "BUKU KALANGAN CPNS", "BUKU KALANGAN UMUM"};
char cari[20];
char pilih, pilih1;
int low, high, posisi;
float posisi1;
int N=6, flag=0;
int no[10] = {1, 2, 3, 4, 5};
char jawaban;
int Y, T;
int SGT = 5000, SGM = 4500, SC = 3000, SS = 6400, SL = 7000;
int BT = 5000, BS = 4000, BB = 3200, BJ = 2000, BG = 2200;
int HBS = 4500, HW = 2500, HS = 1500, HA = 3000, HK = 5000;
int CX = 2000, CC = 1500, CI = 2500, C9 = 6000, CM = 8000;
int N7 = 8000, N6 = 7500, N3 = 6000, N73 = 5000, N70 = 4000;
int ME = 12000, MS = 11000, MC = 10000, ML = 9000, MK = 7000;
int total, bayar, kembali, CLB;
int Harga1, Harga2, Harga3, Harga4, Harga5;
main()
#include
#include
#include
void proses_data(void);
void HP_TYPE1(void);
void HP_TYPE2(void);
void HP_TYPE3(void);
void HP_TYPE4(void);
void HP_TYPE5(void);
void HP_TYPE6(void);
void input_data(void);
void input_lagi(void);
char data[8][30]={"Blackberry", "Croos", "Hitech", "Motorolla", "Nokia", "Samsung"};
char cari[20];
char pilih, pilih1;
int low, high, posisi;
float posisi1;
int N=6, flag=0;
int no[10] = {1, 2, 3, 4, 5};
char jawaban;
int Y, T;
int SGT = 7000000, SGM = 4500000, SC = 1600000, SS = 1400000, SL = 700000;
int BT = 5000000, BS = 4500000, BB = 3200000, BJ = 2900000, BG = 220000;
int HBS = 4000000, HW = 2500000, HS = 1200000, HA = 3900000, HK = 800000;
int CX = 2000000, CC = 1500000, CI = 1200000, C9 = 1900000, CM = 200000;
int N7 = 3000000, N6 = 2400000, N3 = 1700000, N73 = 1300000, N70 = 1100000;
int ME = 1900000, MS = 1400000, MC = 1200000, ML = 900000, MK = 200000;
int total, bayar, kembali, CLB;
int Harga1, Harga2, Harga3, Harga4, Harga5;
main()
{
cout<<"*******************************************************************************"<
cout<
else if(*data[posisi] < *cari) low = posisi+1;
}
while(*cari >= *data[low] && *cari<= *data[high]);
if(flag==1)
{
cout<<"Buku Ditemukan"<
cout<
break;
}
}
else
{
cout<<"buku tidak Ditemukan"<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku 1 Paket Kelas 1"<
Harga1=CLB*SGT;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku 1 Paket Kelas 2"<
Harga2=CLB*SGM;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Sejarah Kelas 3"<
Harga3=CLB*SC;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Biologi Kelas 2"<
Harga4=CLB*SS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Fisika kelas 1 "<
Harga5=CLB*SL;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Belajar Baca "<
Harga1=CLB*BT;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buka Belajar Nyanyi"<
Harga2=CLB*BS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Menghitung lay group"<
Harga3=CLB*BB;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Belajar Ngaji"<
Harga4=CLB*BJ;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Belajar Alphabet "<
Harga5=CLB*BG;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Kimia Kelas 2 A"<
Harga1=CLB*HBS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Fisika Kelas 1 A "<
Harga2=CLB*HW;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Biologi Kelas 3 B "<
Harga3=CLB*HS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Sejarah Kelas 2 B"<
Harga4=CLB*HA;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Akutansi Kelas 1 A"<
Harga5=CLB*HK;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Majalah Masak"<
Harga1=CLB*CX;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Programing "<
Harga2=CLB*CC;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Jaringan Internet"<
Harga3=CLB*CI;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Sejarah Indonesia"<
Harga4=CLB*C9;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Tentang Kemerdekaan"<
Harga5=CLB*CM;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku IPA"<
Harga1=CLB*N7;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku IPS "<
Harga2=CLB*N6;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Matematika"<
Harga3=CLB*N3;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku PPKN "<
Harga4=CLB*N73;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku B.indo"<
Harga5=CLB*N70;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Perpajakan"<
Harga1=CLB*ME;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Ilmu Negara"<
Harga2=CLB*MS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Akutansi"<
Harga3=CLB*MC;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Sosial "<
Harga4=CLB*ML;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Buku Sukses Bisnis"<
Harga5=CLB*MK;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
switch(pilih1)
{
case 'Y':
input_data();
break;
case 'T':
break;
default:
cout<
cout<
cout<
else if(*data[posisi] < *cari) low = posisi+1;
}
while(*cari >= *data[low] && *cari<= *data[high]);
if(flag==1)
{
cout<<"Buku Ditemukan"<
cout<
break;
}
}
else
{
cout<<"Buku Tidak Ditemukan"<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung galaxy tab"<
Harga1=CLB*SGT;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung galaxy mini"<
Harga2=CLB*SGM;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung Corby"<
Harga3=CLB*SC;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung Slim"<
Harga4=CLB*SS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Samsung L200"<
Harga5=CLB*SL;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Torch"<
Harga1=CLB*BT;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Strom"<
Harga2=CLB*BS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Bold"<
Harga3=CLB*BB;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Javelin"<
Harga4=CLB*BJ;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Blacberry Gemini"<
Harga5=CLB*BG;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech Cyber Shoot"<
Harga1=CLB*HBS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech Walkman"<
Harga2=CLB*HW;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech S5000"<
Harga3=CLB*HS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech Android"<
Harga4=CLB*HA;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Hi-tech K200"<
Harga5=CLB*HK;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos XXX"<
Harga1=CLB*CX;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos CST"<
Harga2=CLB*CC;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos ISL"<
Harga3=CLB*CI;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos 9000"<
Harga4=CLB*C9;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Croos MNS"<
Harga5=CLB*CM;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia E72"<
Harga1=CLB*N7;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia E63"<
Harga2=CLB*N6;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia C3"<
Harga3=CLB*N3;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia N73"<
Harga4=CLB*N73;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Nokia N70"<
Harga5=CLB*N70;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla ELJI"<
Harga1=CLB*ME;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla STAR"<
Harga2=CLB*MS;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla ELJI C++"<
Harga3=CLB*MC;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla LOOVE"<
Harga4=CLB*ML;
cout<
if(jawaban == 'Y')
{
cout<<"Anda Membeli Motorolla K502"<
Harga5=CLB*MK;
cout<
if(bayar > total)
{
kembali=bayar-total;
cout<<"Uang anda kembali Rp. :"<
}
else if(bayar==total)
{
cout<<"Uang anda pas\n";
}
else
{
kembali=total-bayar;
cout<<"Uang anda masih kurang : "<
switch(pilih1)
{
case 'Y':
input_data();
break;
case 'T':
break;
default:
cout<
cout<
cout<