Engineering
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

answer
Answers: 3

Other questions on the subject: Engineering

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, hadellolo8839
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
image
Engineering, 04.07.2019 18:20, moneywaydaedae
Air is compressed isentropically from an initial state of 300 k and 101 kpa to a final temperature of 1000 k. determine the final pressure using the following approaches: (a) approximate analysis (using properties at the average temperature) (b) exact analysis
Answers: 1
image
Engineering, 04.07.2019 19:10, Mimidj9279
The sum of the normal stresses does not change as the stress state rotates through an angle. a)-trune b)- false
Answers: 2