Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92683978

Have any Question?


Related Questions in Computer Engineering

What is the syntax to accomplish the following tasksdisplay

What is the syntax to accomplish the following tasks? Display the value of element of string array myStringArray with index 5 Initialize each of the ten elements of one-dimensional integer array myIntArray to 10 Total al ...

Access your browsers security settings and configure the

Access your browser's security settings and configure the browser to refuse all cookies or to prompt you before allowing a cookie. Restart the browser; then visit several different Web sites. Be sure to visit popular sit ...

What is the role of arp and how does it cause a security

What is the role of ARP and how does it cause a security concern? What is the different between global and private IP addresses? How does using NAT change a private IP address into a global IP address, and why is this so ...

Penetration testing is a technique used to identify

Penetration testing is a technique used to identify security weaknesses in your network. Discuss a type of penetration testing and the different methods utilized to recognize vulnerabilities in your network.

The freemont automobile factory has discovered that the

The Freemont Automobile Factory has discovered that the longer a worker has been on the job, the more parts the worker can produce. I need help finding an application that computes and displays a worker's anticipated out ...

Research the history of specification languages and write a

Research the history of specification languages, and write a report on the successes or failures of some of these languages. Include 5 languages which are successful and 5 which have failed. All work should be typed writ ...

Are there manufacturers and retailers who have taken steps

Are there manufacturers and retailers who have taken steps to reduce their pollution impact, both air quality and industrial pollution, while maintaining a viable place in the market?

We talked a few times about slow migration from ipv4 to

We talked a few times about slow migration from IPv4 to IPv6 in the U.S. What was the primary motivating factor to migrate to IPv6? What are two other advantages of IPv6 over IPv4? Why is China farther along in implement ...

Mccann co has identified an investment project with the

McCann Co. has identified an investment project with the following cash flows. Year Cash Flow  1   $800  2    1,090 3    1,350 4    1,475 a. If the discount rate is 7 percent, what is the present value of these cash flow ...

Question please review the description of the organization

Question: Please review the description of the organization that is the subject of your semester project. The description of that organization, CITY GENERAL HOSPITAL, is described in the instructions for Phase I that you ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As