#include<iostream>
#include<stdio.h>
#include<conio.h>
#include<constrea.h>
main()
{
/* Inputan Variable */
char v[14],w[14];
float a=4500,b,c,d,e;
/* Langkah Pembuatan inputan */
cout<<" ================"<<endl;
cout<<" TOKO BUAH RAIS"<<endl;
cout<<" ================"<<endl;
cout<<""<<endl;
cout<<" TABLE HARGA "<<endl;
cout<<" JERUK=4500 MANGGA=-- JAMBU=-- BELIMBING=-- NAGA=--"<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<"Nama Pembeli =";cin>>v;
cout<<"Nama Buah =";cin>>w;
cout<<"Jumlah Beli =";cin>>b;
/* Langkah Proses */
c=a*b;
/* langkah output hasil */
clrscr();
cout<<" TOKO BUAH RAIS"<<endl;
cout<<""<<endl;
cout<<"================"<<endl;
cout<<"Struk Pembayaran"<<endl;
cout<<"================"<<endl;
cout<<""<<endl;
cout<<"Nama Pembeli ="<<v<<endl;
cout<<"Nama Buah ="<<w<<endl;
cout<<"Harga Buah =Rp."<<a<<endl;
cout<<"Jumlah beli ="<<b<<endl;
cout<<"Total Bayar =Rp."<<c<<endl;
cout<<""<<endl;
cout<<"Bayar =Rp.";cin>>d;
/* Langkah Proses uang kembalian */
e=d-c;
/* Langkah output proses uang kembalian */
cout<<"Kembali =Rp."<<e<<endl;
cout<<""<<endl;
cout<<""<<endl;
cout<<"Terima Kasih Atas Kunjungannya";
getch();
}
Monggo Di utak atik . klo ada yg bingung comment ajah ya ..
Tidak ada komentar:
Posting Komentar