For more details, we simply make the program. Here are the steps:
1. Open a Turbo C + + applications.
2. Select the file, then select new.
3. Type the following code:
/ / SAMPLE PROGRAM CASHIER
# include
# include
void main ()
{
int BYKB, JLHU;
HS float, JML, back next;
printf ("+ ----------------------------- + \ n");
printf ("| RAYHAN | \ n");
printf ("| sample program counter | \ n");
printf ("+ ----------------------------- + \ n \ n");
printf ("Enter the number of items =");
scanf ("% d", & BYKB);
printf ("Enter the Price of Goods =");
scanf ("% f", & HS);
QTY = BYKB * HS;
printf ("Total Pay You =% f", JML);
printf ("\ n ============================");
printf ("\ n Total Money ="); scanf ("% d", & JLHU);
back next = JLHU-JML;
printf ("Returned Your =% f", back next);
}
4. Select Debug and then Run.
5. Enter the quantity and price of goods.http://dianasaputri6.blogspot.com/2012/03/program-perhitungan-kasir-menggunakan.html