Professional Documents
Culture Documents
Soal Quiz 1
Soal Quiz 1
#include <stdio.h>
#include <conio.h>
#include <iostream.h>
#include <iomanip.h>
main()
int x,y;
long tobar[4],subtotal[4];
float ppn=0.1;
atas:
clrscr();
cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<endl;
cout<<"Data Ke : "<<x<<endl;
cout<<endl;
if (kode[x] == 'A'){
strcpy(nm_bar[x],"Baju H&M");
if(ukuran[x] == 'S'){
hrg[x] = 150000;
else{
hrg[x] = 300000;
strcpy(nm_bar[x],"Baju Prada");
if(ukuran[x] == 'S'){
hrg[x] = 155000;
hrg[x] = 220000;
else{
hrg[x] = 340000;
strcpy(nm_bar[x],"Baju Gucci");
if(ukuran[x] == 'S'){
hrg[x] = 170000;
hrg[x] = 250000;
else{
hrg[x] = 399000;
else {
strcpy(nm_bar[x],"Baju Louis");
if(ukuran[x] == 'S'){
hrg[x] = 199000;
hrg[x] = 299000;
else{
hrg[x] = 599000;
cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<endl;
cout<<endl;
cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
for (x =1;x<=y;x++)
cout<<"SubTotal : "<<subtotal[x]<<endl;
cout<<"PPN : "<<ppn<<endl;
lagi = getche();
goto atas;
return 0;