A vending machine sells coffee for 25 cents or tea for 15 cents. Write a program that will simulate this vending machine. First, accept coins from the user (user enters integers 5, 10, or 25), until the user enters zero. Then give the user a choice (with menu) for coffee or tea. If the amount deposited is sufficient, print the selection and calculate the change. If the amount deposited is not sufficient, display a message for insufficient amount and return the money.
A sample input/output:
Insert coins: 10
Insert coins: 10
Insert coins: 10
Insert coins: 0
Please select from the following menu: 1 – coffee, 2 - tea
Enter your choice: 1
Coffee dispensing
Your change is 5 cents