Question: Using python Recal yesterday's Pe where you were given an integer vele less than 20. Based on the ruder giver, you calculated the combination of
Using python
Recal yesterday's Pe where you were given an integer vele less than 20. Based on the ruder giver, you calculated the combination of ten and five dollar bils, toonies (2 dollercors) end lories I della cors) reeded to pay such that you pay usra as many of the largest bills/coins first A solution to this problem has been given to you. You are going to modify that problem so that an error message is output the value given to you as input is NOT an integer from 0 to 19. You my wish to the use of the exime Details Input Input contar + the input (rad in for you to a variable named value is SUPPOSEDto be a positive Integer that is less than 20 Processing This is already handled by the program The program docians and initiates thatollowing Integer variables: . tens: number of ten da lorbis required. Tives number of live dalili needed later ters are paid towards valuel Loonier:number of bas dalar coins nondalabarters and vns are paid) . loonies: number of one dollar insaned alteriors, tives and tapnies are paid You must modify the program to ensure proper input. . You will outpu. "Input error" if de dollar amount value is: not ar ingor or not in the margarita 19 inclusive Output Aside from the modification described above ourout k taken care o for you Sample input/output: Input Output Inget error Recal yesterday's Pe where you were given an integer vele less than 20. Based on the ruder giver, you calculated the combination of ten and five dollar bils, toonies (2 dollercors) end lories I della cors) reeded to pay such that you pay usra as many of the largest bills/coins first A solution to this problem has been given to you. You are going to modify that problem so that an error message is output the value given to you as input is NOT an integer from 0 to 19. You my wish to the use of the exime Details Input Input contar + the input (rad in for you to a variable named value is SUPPOSEDto be a positive Integer that is less than 20 Processing This is already handled by the program The program docians and initiates thatollowing Integer variables: . tens: number of ten da lorbis required. Tives number of live dalili needed later ters are paid towards valuel Loonier:number of bas dalar coins nondalabarters and vns are paid) . loonies: number of one dollar insaned alteriors, tives and tapnies are paid You must modify the program to ensure proper input. . You will outpu. "Input error" if de dollar amount value is: not ar ingor or not in the margarita 19 inclusive Output Aside from the modification described above ourout k taken care o for you Sample input/output: Input Output Inget error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
