Write ada program for a computer to be used as cash register

Assignment Help Computer Engineering
Reference no: EM131855621

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.

Reference no: EM131855621

Questions Cloud

If a fraudulent imposter can perform the job whats the harm : Do you think fraud on resumes and job applications is an important issue for organizations? Why or why not?
Decision making and clinical judgement : Identify and discuss six major ethical principles that help guide decision making and clinical judgement.
Write a program to produce a bar chart of gourmet popcorn : Develop a design and write a program to produce a bar chart of gourmet popcorn production for a cooperative farm group on a farm-by-farm basis.
Consequences to the client receiving the heparin : If a U for units was misread as a zero by the nurse for a heparin dose, what would be the consequences to the client receiving the heparin?
Write ada program for a computer to be used as cash register : 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.
In management what is the role of bias : In management what is the role of bias? What are some positive uses of bias? How can you identify personal bias and eliminate it?
How many workstations will be needed to make the new product : You will have 420 minutes per day in which to work. There will be five tasks required for each part and the times and precedence matrix is shown below.
Psychosocial-physiological measurement : Identify both a psychosocial AND a physiological measurement tool that could be used to measure a concept in Catheter-Associated Urinary Tract Infection(CAUTI)
Write a top-down design and an ada program with procedures : Write a top-down design and an Ada program with procedures that will help you balance your checking account.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd