Why tell the animals living in the
water to drink? WEST
AFRICAN PROVERB

May 23, 2002
*this program will print out a sales receipt for the store TOYS-R-US
*When the program runs, the output screen will have displayed at the top a heading like this….
*********************Welcome to TOYS-R-US***************************
* PLEASE ENTER ITEM NAME?:
* PLEASE ENTER UNIT PRICE?:
* ENTER QUANTITY?:
*the screen will clear and you will see the bill that your program has calculated
use the clrscr(); (#include<conio.h>)
#############TOYS-R-US###################
sales receipt
Name of Item: L.L. Cool J CD
Price: $14.95
Quantity: 3
Sub total: $ 44.85
Tax (0.06%): $2.61
Please pay this amount:$47.54
Thank you for shopping at Toys-R-Us
The identifiers (variables) you will need are:
-name (a string)
-price (a float)
-amount (integer)
-tax_rate (const tax_rate=.06)
-sub_tot (float)
-total
to enter a string, we must use a char array…. char name[81];
cout<<”enter
name”;
cin.get(name, 80);