The initialization program

Assignment Help Basic Computer Science
Reference no: EM13161315

Write a program to make change. the initialization program will start with how much you have in the cash register and in what denominations the money is in. You will enter a purchase amount amount and the currency that was used to make the purchase. The cash register holds currency in the following denominations: (3) 20 dollar bills (2) 10 dollar bills (5) 5 dollar bills (11) dollar bills (10) quarters (29) dimes (15) nickels (300) pennies Your program should: 1. print out the change including the denominations. 2. update the amount of money in the cash register. So the dialog will look something like this: "Enter purchase amount:" "Enter currency taken in:" How many 20 dollar bills: How many 10 dollar bills: How many 5 dollar bills: How many 1 dollar bills: How many quarters: How many dimes: How many nickels: How many pennies: Its possible you won't be able to make change. Then tell the user you are sorry. You can use the scanner and system.out to do i/o or you can use the swing windowing to do the i/o.

Reference no: EM13161315

Questions Cloud

Structs in an array of employee data. : Below is the instructions of my C++ Lab. The program must build in Microsoft Visual C++. Please use headers so the program will compile
Explain blue complex formed between starches and iodine : The blue color of dextran blue solution is due to the well-known, blue complex formed between starches and iodine. If you only had the absorption spectrum of this solution
Compute a program that calculates three resistance inputs : C language, compute a program that calculates three RESISTANCE inputs, and gives you the total resistance in OHMS. Like this, the total resistance is _____ ohms. These are three parallel circuits so the formula would be (1/R1 + 1/ R 2 +  1/ R 3 )  -1
Java code using jframe : Write a Java code using JFrame. This code needs to manipulate 4 shapes(2 rectangles and 2 squares) in a 400x400 JFrame. This needs to manipulate the shapes in 3 different ways, using 3 different methods. One for translating a shape, one for proportio..
The initialization program : The initialization program will start with how much you have in the cash register and in what denominations the money is in.
1.what is the value of the following instruction? : 1.What is the value of the following instruction? mov al,01101011b shr al,22.What is the two's complement of the binary number 11010000?3.Which statement defines an array local variable consisting 40 signed words?
Compute the approximate molecular mass of an protein : Calculate the approximate molecular mass of an unknown protein which had an elution volume of 9.0mL on the column.
Compare three mobile platforms : You have just been given an assignment to compare three mobile platforms for the following project. Orion is an online service company that enables member subscribers to conduct their own online surveys. Orion has decided to extend this service
Can validation and verification methods be found that tiein : Can validation and verification methods be found that tiein with the requirements definition process

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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