subject
Engineering, 30.11.2021 03:20 yeayeawhatever3389

Please help write the code in the attached file based on the marking checklist. Change Machine
Ask the user to input the cost of some
item, and then ask for how much
money was paid. Print out the least
number of quarters, dimes, nickels,
and pennies that will be returned as
change.

Example:
Enter the price:
5.00
Enter the amount paid:
4.33
Change owed: 0.67
Quarters: 2
Dimes: 1
Nickels: 1
Pennies: 2

Marking Checklist
1 K/U Runs without error
1 A A Method of ending gracefully (loop to run program again)
1 A Includes error checking
1 K/U Solves stated problem, determines coin distribution
1 C Code has descriptive comments

Specific Requirements:
1 T/I Input to console
2 T/I At least 2 Functions, 1 with a return
1 T/I If Statements or Loops
5 T/I Correct calculations
1 T/I Output to console


Please help write the code in the attached file based on the marking checklist.

Change Machine
As

ansver
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, kayabwaller4589
When at a point two solid phase changes to one solid phase on cooling then it is known as a) eutectoid point b) eutectic point c) peritectic point d) peritectoid point
Answers: 3
image
Engineering, 03.07.2019 15:10, margaret1758
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
image
Engineering, 04.07.2019 18:10, ahmedeldyame
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
image
Engineering, 04.07.2019 18:10, yasminothman02
An air conditioning system consist of a 5 cm diameter pipe, operating at a pressure of 200 kpa. the air initially enters the pipe at 15°c with a velocity of 20 m/s and relative humidity of 80%. if the heat supply throughout the process is 960 w, determine the relative humidity and the temperature at the outlet
Answers: 3
You know the right answer?
Please help write the code in the attached file based on the marking checklist. Change Machine

Questions in other subjects:

Konu
Mathematics, 18.09.2019 08:30