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 Points
Creating a changecounting 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 ifelifelse statements
Expected Output:
Enter the number of pennies:
Enter the number of nickels:
Enter the number of dimes:
Enter the number of quarters:
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
