Question: see image (Financial application: monetary units) Write a program to accept both cost and paid amounts from the user and compute the change in monetary
see image

(Financial application: monetary units) Write a program to accept both cost and paid amounts from the user and compute the change in monetary units and display a message summarizing those units: E.g. if cost entered was 3.36 cost and the paid amount entered was 5.00, the output would be: \"The change will be 1 dollars 2 quarters l dimes 0 nickels 4 pennies\") Stretch goal (worth 2 bonus points) Have your program display the nonzero denominations only, using singular words for singular units such as 1 dollar and 1 penny, and plural words for more than one unit such as 2 dollars and 3 pennies. E.g.\"The change will be 1 dollar 2 quarters 1 dime 4 pennies\")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
