money counting game create a change-counting game that gets the user to enter the number of coins required to make exactly $1. the program should prompt the user to enter the number of pennies, nickels, dimes, and quarters. if the total value of the coins entered is equal to $1, the program should congratulate the user for winning the game. otherwise, the program should display a message indicating whether the amount entered was more than or less than $1.

Respuesta :

The general-purpose, interactive, object-oriented, and high-level programming language Python is particularly well-liked.

def main():

   pennies=int(input("Enter the Number of pennies : "))

   nickels = int(input("Enter the Number of nickels : "))

   dimes = int(input("Enter the Number of dimes : "))

   quarters =int(input("Enter the Number of quarters : "))

   pennies1=pennies*1

   nickels1=nickels*5

   dimes1=dimes*10

   quarters1=quarters*25

   total=pennies1 +nickels1+dimes1+quarters1

   cash=total//100

   change=total-cash*100

   computeValue(pennies1,nickels1,dimes1,quarters1)

def computeValue(pennies1,nickels1,dimes1,quarters1):

   print("You entered")

   if (pennies1 == 1):

       print ("You have exactely 1 dollar")

   elif (pennies1 < 1):

       print ("You have",pennies1,"which is less than 1 dollar")

   elif (pennies1 > 1):

       print ("pennies:",pennies1,"\nnickels:",nickels1,"\ndimes:",dimes1,

       "\nquarters:",quarters1,"\nYou have",pennies1,"dollars and",pennies1,"cents")

main()

Learn more about nickel here-

https://brainly.com/question/3542561

#SPJ4