Question: In C++ write a program which: -Prompts the user to enter a positive integer, think of this integer as representing a specific number of pennies.
The program's display must adhere to the following rules: 1. One "coin" per line. 2. Proper use of the singular or plural nouns; example 1 dime or 2 dimes 3. Only display coins that are actually used in the result Acceptable examples include: 1 quarter2 dimes 3 pennies 2 quarters 1 dime 1 penny 1 nickel 4 pennies Unacceptable examples of change include: 1 quarter 0 dimes 0 nickels 3 pennies 2 quarter(s) 1 dime(s) 1 nickel 1 penny The program's display must adhere to the following rules: 1. One "coin" per line. 2. Proper use of the singular or plural nouns; example 1 dime or 2 dimes 3. Only display coins that are actually used in the result Acceptable examples include: 1 quarter2 dimes 3 pennies 2 quarters 1 dime 1 penny 1 nickel 4 pennies Unacceptable examples of change include: 1 quarter 0 dimes 0 nickels 3 pennies 2 quarter(s) 1 dime(s) 1 nickel 1 penny
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
