Question: python3 Q1.1: ATM You want get num 100 dollars from the ATM that only gives out 50, 20, and 10 dollar bills. You wish to
python3

Q1.1: ATM You want get num 100 dollars from the ATM that only gives out 50, 20, and 10 dollar bills. You wish to have at least 5 bills of each kind (at least five $50 bills, at least five $20 bills, and at least five $10 bills). Write a function atm, which takes a integer, num and retums all possible ways an ATM can combine these bills in two dimensional array. Notes: If there is no way to break num*100 into required combination, have an assertion that fails The order of the combinations is not important, but the order within a combination is very important. Output should look like I5, 23, 29), 7, 26, 13 This is an array of arrays of 3 numbers For example, atm(10) asks to make change for S1000. One of the combinations of denominations satisfy this quantity is [5, 23, 29] because this means the ATM returns five S50 bills, twenty-three $20 bills and twenty- nine $10 bills, which together sum to $1000, as desired. .10, 20, and 50 are magic numbers and thus cannot be used directily in your code def atn(n): Input: the nunber num (number of 180 dollr bills) Output: all possible ways to break num 180 as a 2D array. ar b1l2r code goes here#
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
