Question: Q1 Write a Python program that repeatedly asks the user to input coin values (1 or 5 or 10 or 25) until the total amount


Q1 Write a Python program that repeatedly asks the user to input coin values (1 or 5 or 10 or 25) until the total amount matches a target value. The target value is a randomly generated integer between 1 and 99 inclusively. For example, for a target value of 31 coin values entered by the user should be 25, 5, and 1 because 31- 25+5+ 1. When a game session starts, the player is asked to enter a valid coin value (1 or 5 or 10 o 25). If the player enters a coin value that is not valid (i.e. the coin value is not 1 or 5 or 10 or 25) the program prompts the player to enter a valid value. The program continues to prompt the player to enter a valid value until the player enters a valid value. If the player presses
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
