Uploaded by Rebecca Phillpotts

Pascal Practice Question

advertisement
Using Pascal write a program that would be used by a supermarket to checkout Express
Lane customers. The program must accept no more than 10 item names, prices and
quantities purchased for each item. The program will then calculate the final price to be paid
by the customer after a 16.5% consumption tax is paid. The program must display the name,
quantity and cost price of each item, the total cost before tax and the total amount of tax paid
and the final price after tax.ls
BEGIN
Constant
Tax  0.165
OrangeJuice  200
Cinnamonrolls  150
Bread 80
Waffles  300
ChickenSeasoning 250
WholeChicken 1000
Salt 80
BottledWater  100
Doritos  85
ChewingGum  200
Declare totalbeforetax, taxamount, finalamount as REAL
Itemquantity as INTEGER
Itemname as STRING
Totalnumberofitems 10
PRINT “Please enter first item”
READ Itemname
Download