Question
Please answer in python Create a function called cash machine. The function you create is a real cash machine It will work logically. Banknotes worth
Please answer in python
Create a function called cash machine. The function you create is a real cash machine It will work logically. Banknotes worth 100, 50, 20, 10, 5, 2, 1 Turkish Lira at the ATM we will assume it is. (Consider that 1 and 2 TL are given in the form of coins, not banknotes.) It takes the amount of money that the user wants to spend as input and to get this amount find out the minimum number of banknotes required and detail that one of each inset banknote has been used. Write a program that gives. Receiving amounts such as 540.2, 875.25, 154.50 from the user cash machine Have it print on the screen that only the previous fare from the dot can be paid out if desired. The expected output of the program is given below.
Note: Try to use the name of the function given in the question.
Enter the amount you want to withdraw: 564 9 Number of banknotes to be given in total : Detailed banknote quantities: 100 TL:5 50 TL:1 10 TL:1 2 2 TL:2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started