TUGAS B
#include
#include
#include
#include
main()
{
class
{
public:
char nm[20];
long int harga,toha;
int jumbel;
}penj[10];
float subtotal=0,disc,ppn,grand,bayar,kbl;
int nota;
int i,j;
char lagi;
clrscr();
cout<<"============================================="<
cout<<"Jumlah Transaksi : ";cin>>j;
for(i=1;i<=j;i++)
{
cout<
cout<<"Harga Satuan : ";cin>>penj[i].harga;
cout<<"Jumlah Beli : ";cin>>penj[i].jumbel;
penj[i].toha=penj[i].harga*penj[i].jumbel;
cout<<"Total Harga : "<
if(subtotal>180000)
{disc=0.15*subtotal;}
else if(subtotal>70000)
{disc=0.05*subtotal;}
else
{disc=0;}
ppn=0.1*(subtotal-disc);
grand=(subtotal-disc)+ppn;
}
clrscr();
cout<<" SWALAYAN BINA DAGANG"<
{
cout<
cout<<"============================="<
cout<<"-----------------------------"<
cout<<" Kembalian : Rp."<
}
15.25
|
|
This entry was posted on 15.25
You can follow any responses to this entry through
the RSS 2.0 feed.
You can leave a response,
or trackback from your own site.
0 komentar:
Posting Komentar