Question: 14. Programming 14.1 Write a function that converts an amount to the correct number of bills. Ask the user to input an amount with the

 14. Programming 14.1 Write a function that converts an amount to

14. Programming 14.1 Write a function that converts an amount to the correct number of bills. Ask the user to input an amount with the keyboard. Then convert the amount to the minimal number of bills that are equal to the amount. The user input is always a multiple of 10 and smaller 1000 (e.g. 10,30 150; no check needed). The function shall support 10, 20 and 50 bills only. The screen output of the program shall look exactly like this (eample for input "130"); Amount: 130 -> 50 bills: 2 : 20 bills: 1 ; 10 bills: 1 The first number is the input of the user. The next three numbers after the '' are the number of 50, 20 or 10 bills that are needed to match the input amount. In your program, you should use the name of the variables instead of the numbers 130, 2, 1 and 1 1 2 3 4 5 6 7 8 9 10 11

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 Databases Questions!