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

  Difference and similarity between matlab and vba syntax

1. What's one difference you've noticed between MATLAB and VBA syntax? What is one similarity?

  Create a program that reads number of dooflingies

The shipping clerk at Rinky Dooflingy Corporation is faced with the problem: Dooflingies are very deilicate and must be shipped in special containers.

  Financial impact of change on wvu students

Currently, PRT riders who are not WVU students or employees must pay $0.50 per trip. Assume that this charge was eliminated.

  Develop a structure chart with a main module

Develop a structure (hierarchy) chart with a main module, submodules, the parameter variables, and reference in the reference variables in the parentheses as needed.

  Button subprocedure to store user-s name in cell

If you wish to take in and store user's name in cell A1 by having them type their name following prompt declaring "Give me your name, Earthling!" that code excerpt must you use within button subprocedure?

  Describing fields and options with user account set-up

Describe the fields and options associated with user account set-up.

  Event drive programming

Lets look at event drive programming. What is an event driven program? What are events associated with? What are examples of common events?

  Describe some ways for the firsthand knowledge

Describe some ways in which the firsthand knowledge we have of some topic goes beyond what we are able to write down in a language. What accounts for our inability to express this knowledge?

  Identify people to interview to learn new training activity

Draft a project scope statement for the TIMS system and describe the constraints. She said be specific. Need to identify the people want to interview to learn more about the new training activity, and prepare a list of the questions I will ask.

  Write name of storage location involved in the code

Recognize each dependency by type; write the two instructions involved; recognize which instruction is dependent; and name storage location involved.

  Design a suitable source document for ads

Terrier News is a monthly newsletter devoted to various breeds of terriers and topics of interest to terrier owners and breeders. Design a suitable source document for ads that are telephoned or mailed in.

  What percentage of total cpu time is spent keeping clock

What percentage of the total CPU time is spent maintaining a clock that is accurate to a resolution of one millisecond?

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