Develop a top-down design and write an ada program for a


Problem

Develop a top-down design and write an Ada program for a computer to be used as a cash register at Alan's Bake Shop. For each sale, the program should prompt for and get the product category, quantity purchased, and price. The total amount of purchase should be calculated and displayed. Then the program should prompt for and get the amount of money received from the customer. It should then display the amount of change (a float value) and the bills and coins needed to make up that change. For example, if the amount of change is $7.32, the customer would be given one five-dollar bill, two onedollar bills, one quarter, one nickel, and two pennies. At the end of the day the clerk enters the category Done. The program should then display the total amount of sales in each of the five categories and terminate.

Input

Product Category (Cake, Pie, Bread, Roll, Cookie, or Done) Quantity Price Amount of money received from customer

Output Total amount of purchase Change returned to customer; in addition to the amount of change, display the number of five-dollar bills, one-dollar bills, quarters, dimes, nickels, and pennies At the end of the day (when Done is entered) display the total dollars of sales for each of the five product categories.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Develop a top-down design and write an ada program for a
Reference No:- TGS02651122

Expected delivery within 24 Hours