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

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Which of the following ziegler nichols tuning methods the response of the controller to a step input should exhibit an s-shaped curve? a)-open loop mode b)-closed loop mode c)-both modes (open & closed) d)-none of the modes (open & closed)
Answers: 3
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
question
Engineering, 04.07.2019 19:10
In general, how do thermosetting plastics compare to thermoplastics in mechanical and physical properties?
Answers: 3
question
Engineering, 04.07.2019 19:10
Estimate the change in specific internal energy au and specific enthalpy h from inlet to outlet for ethylene glycol (a liquid) flowing through each of the following devices: (a) a heat exchanger where the glycol temperature increases from 20 °c to 80 °c; (b) a pump operating at about 25 °c and increasing the glycol pressure from 100 kpa to 8 mpa.
Answers: 2
You know the right answer?
Please help write the code in the attached file based on the marking checklist. Change Machine
Questions
question
Mathematics, 14.01.2021 20:00
question
Mathematics, 14.01.2021 20:00
question
Mathematics, 14.01.2021 20:00
question
Mathematics, 14.01.2021 20:00
Questions on the website: 13722361