#include
#include
#include
main()
{
char nama[30],nabar[20],kode,gudang[20],satuan[20],bonus[20];
long harga,jumbel,ubay,ukem,total,bayar;
clrscr();
cout<<"Toko bangunan Adi Jaya Semesta\t"<
cout<<"kode barang[a/b/c] :";cin>>kode;
cout<<"_________________________________"<
{
strcpy(nabar,"Semen");
strcpy(satuan,"Sak");
harga=50000;
}
else if(kode=='b'||kode=='B')
{
strcpy(nabar,"Pasir");
strcpy(satuan,"colt");
harga==100000;
}
else if(kode=='c'||kode=='C')
{
strcpy(nabar,"Batu");
strcpy(satuan,"Buah");
harga=1000;
}
else
{
strcpy(nabar,"tidak ada");
strcpy(satuan,"tidak ada");
harga=0;
}
cout<<"Nama Petugas :"<
bayar=harga*jumbel;
cout<<"Total Bayar :"<
{
strcpy(bonus,"baju");
}
else if(bayar>=500000)
{
strcpy(bonus,"Kaos kaki");
}
else if(bayar<500000)
{
strcpy(bonus,"gak Dapet");
}
cout<<"bonus :"<
ukem=ubay-bayar;
cout<<"Uang Kembali :Rp."<
}
1 komentar:
keren (y)
Posting Komentar
Silahkan beri komentar dengan bijak dan jangan sampai komentar anda masuk dalam {COMMENTS SPAM}. Thanks