Untitled
plain_text
2 months ago
786 B
2
Indexable
Never
You are tasked with implementing a program for a beverage vending machine. The vending machine offers the following beverage choices: Aqua (Price: 2000) Sosro (Price: 5000) Cola (Price: 7000) Milo (Price: 9000) The program should accept inputs of money in the form of integers, with a nominal value of 2000 and 5000. The machine accepts a maximum of 3 bills. Write a function that takes a list of bills as input and returns the possible beverage combinations according to the bills inputted. Example: Input: [2000] Output: 1 aqua Input: [2000, 2000] Output: 2 aqua Input: [5000, 2000] Output: 1 cola Input: [1000] Output: invalid denomination Input: [5000, 5000] Output: 1 Milo Input: [5000, 5000, 5000] Output: 1 Milo 1 Sosro