Question: moneyCounting.py ( 3 0 Points ) Creating a change - counting game that gets the User to enter the number of coins required to make

moneyCounting.py (30 Points)
Creating a change-counting game that gets the User to enter the number of coins required to make exactly one dollar. If the total value of coins entered equals to one dollar, the program should congratulate User for winning the game. Otherwise, the program should displays the a message indicating whether the amount entered was more than or less than one dollar.
Hints:
Declare global variables
Declare local variables or initialize them
Get number of pennies, nickels, dimes, and quarters from the user.
Sum the pennies, nickels, dimes and quarters to obtain total cent value.
Calculate the total value in dollars
Determine whether user won the game with if/elif/else statements
Expected Output:
Enter the number of pennies: 10
Enter the number of nickels: 10
Enter the number of dimes: 10
Enter the number of quarters: 10
Sorry, the amount you entered was more than one dollar.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!