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

  How will decision meet accessibility guidelines

Knowing that this violates Redundancy Principle, but wanting to accommodate employees with disabilities, what would you suggest instead? How would your decision meet accessibility guidelines?

  Explain can capabilities protect against all trojan horses

Can capabilities protect against all Trojan horses? Either show that they can or describe a Trojan horse process that C-Lists cannot protect against.

  Social policy and debate regarding children and technology

See Supreme Court Rules for more information. If Winner's three guiding maxims were utilized, how would this influence social policy and debate regarding children and technology?

  Executing critical section in mutual exclusion protocol

In Lamport's mutual exclusion protocol, if process i is implementing critical section.

  Compute minimum-maximum possible values for distance

During run, compute the minimum and maximum possible values for the following distance measures (from the center of the track): Manhattan, Euclidean and Chebyshev distance.

  Impact of activities called ping sweeps and port scans

Your boss has just heard about some nefarious computer activities called ping sweeps and port scans. He wants to know more about them and what the impact of these activities might be on your company.

  Create flowchart and psuedo code for math program

Create flowchart and psuedo code for math program which permits the user to enter two separate numbers and choose one of four mathematical operations (add, subtract, mutiply, divide).

  Describe basic computer system and typical components

Describing the basic computer system and the typical components that perform input, output, processing, storage, and control functions.

  Explain use of compensatory substituent in identification

Explain the use of "compensatory substituent" in identification and annotation of non-coding genes? Write down the difference between matrix and a Blosum60 Blosum20 matrix?

  Explaining mismatched file headers to extensions

What procedures would you require to follow to retrieve evidence? Identify mismatched file headers to extensions.

  Find the gradient magnitude and gradient direction

Consider the sub-image shown above. Find the gradient magnitude and gradient direction at the center entry using the following operators.

  Support desktop computers in small company

Static IP address of server is 192.168.45.200. Employees will open their Web browser and enter personnel.mycompany.com in URL address box to browse Web site.

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