Listing Program:
#include 
#include
#include
int kd;
long total,jumlah,jm;
void main()
{
do
{ int i=1;
cout<<" Masukkan Kode Barang [100 - 130] : "; cin>>kd;
cout<<" Masukkan jumlah Barang : "; cin>>jm;
i++;
if (kd>130)
cout<<"Maaf kode yg anda masukkan tdk terdapat pada data kami. . .!!"<    else
switch(kd)
{
case 100 : cout<<" kode barang :"<                 total = jm * 4000;
cout<<" Jumlah Bayar : "<     case 101 : cout<<" kode barang :"<                 total = jm * 1500;
cout<<" Jumlah Bayar : "<     case 102 : cout<<" kode barang :"<                 total = jm * 3500;
cout<<" Jumlah Bayar : "<     case 103 : cout<<" kode barang :"<                 total = jm * 6000;
cout<<" Jumlah Bayar : "<     case 104 : cout<<" kode barang :"<                  total = jm * 5000;
cout<<" Jumlah Bayar : "<     case 105 : cout<<" kode barang :"<                 total = jm * 2000;
cout<<" Jumlah Bayar : "<     case 106 : cout<<" kode barang :"<                 total = jm * 1500;
cout<<" Jumlah Bayar : "<     case 107 : cout<<" kode barang :"<                 total = jm * 1000;
cout<<" Jumlah Bayar : "<     case 108 : cout<<" kode barang :"<                 total = jm * 1000;
cout<<" Jumlah Bayar : "<     case 109 : cout<<" kode barang :"<                 total = jm * 4000;
cout<<" Jumlah Bayar : "<     case 110 : cout<<" kode barang :"<                 total = jm * 5000;
cout<<" Jumlah Bayar : "<     case 111 : cout<<" kode barang :"<                 total = jm * 4000;
cout<<" Jumlah Bayar : "<     case 112 : cout<<" kode barang :"<                 total = jm * 500;
cout<<" Jumlah Bayar : "<     case 113 : cout<<" kode barang :"<                 total = jm * 5000;
cout<<" Jumlah Bayar : "<     case 114 : cout<<" kode barang :"<                 total = jm * 5500;
cout<<" Jumlah Bayar : "<     case 115 : cout<<" kode barang :"<                 total = jm * 500;
cout<<" Jumlah Bayar : "<     case 116 : cout<<" kode barang :"<                 total = jm * 3000;
cout<<" Jumlah Bayar : "<     case 117 : cout<<" kode barang :"<                 total = jm * 4500 * 10;
cout<<" Jumlah Bayar : "<     case 118 : cout<<" kode barang :"<                 total = jm * 5500;
cout<<" Jumlah Bayar : "<     case 119 : cout<<" kode barang :"<                 total = jm * 8000;
cout<<" Jumlah Bayar : "<     case 120 : cout<<" kode barang :"<                 total = jm * 10000;
cout<<" Jumlah Bayar : "<     case 121 : cout<<" kode barang :"<                 total = jm * 5000 * 10;
cout<<" Jumlah Bayar : "<     case 122 : cout<<" kode barang :"<                 total = jm * 25000;
cout<<" Jumlah Bayar : "<     case 123 : cout<<" kode barang :"<                 total = jm * 12000;
cout<<" Jumlah Bayar : "<     case 124 : cout<<" kode barang :"<                 total = jm * 9000;
cout<<" Jumlah Bayar : "<     case 125 : cout<<" kode barang :"<                 total = jm * 9000;
cout<<" Jumlah Bayar : "<     case 126 : cout<<" kode barang :"<                 total = jm * 8700 * 10;
cout<<" Jumlah Bayar : "<     case 127 : cout<<" kode barang :"<                 total = jm * 12000;
cout<<" Jumlah Bayar : "<     case 128 : cout<<" kode barang :"<                 total = jm * 9000 * 10;
cout<<" Jumlah Bayar : "<     case 129 : cout<<" kode barang :"<                 total = jm * 7500 * 10;
cout<<" Jumlah Bayar : "<     case 130 : cout<<" kode barang :"<                 total = jm * 1300 * 10;
cout<<" Jumlah Bayar : "<    }
getch();
jumlah=jumlah+total;
}
while (kd!=0);
cout<<"Total pembayaran adalah : Rp."<}
                                                                
#include
#include
int kd;
long total,jumlah,jm;
void main()
{
do
{ int i=1;
cout<<" Masukkan Kode Barang [100 - 130] : "; cin>>kd;
cout<<" Masukkan jumlah Barang : "; cin>>jm;
i++;
if (kd>130)
cout<<"Maaf kode yg anda masukkan tdk terdapat pada data kami. . .!!"<
switch(kd)
{
case 100 : cout<<" kode barang :"<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
cout<<" Jumlah Bayar : "<
getch();
jumlah=jumlah+total;
}
while (kd!=0);
cout<<"Total pembayaran adalah : Rp."<
Silahkan Berkomentar Pada Form Komentar dengan sopan dan santun .. No Spam .... !!! thank's @Admin
EmoticonEmoticon