Question: I need help with this assignment in python. The top part is the assignment, the part on the bottom is the output. Thanks! 6 Coke

I need help with this assignment in python. The top part is the assignment, the part on the bottom is the output. Thanks!I need help with this assignment in python. The top part is

6 Coke machine Suppose that a machine sells bottles of Coca-Cola (Coke) for 75 cents and only accepts coins in these denominations: 50 cents, 25 cents, 10 cents, and 5 cents. Implement a program that prompts the user to insert a coin, one at a time, each time informing the user of the amount due. Once the user has inputted at least 75 cents, output how many cents in change the user is owed. Assume that the user will only input integers, and ignore any integer that isn't an accepted denomination. Buy a coke? (Y|y to proceed y Insert coin. Amount due 7510 Insert coin. Anount due 6545 invalid coin! We only accept $50,$25,$10 and $5 Insert coin. Amount due 6559 Insert coin. Anount due 1550 Your change =35. Enjoy your coke! Buy another coke? ( Yy to proceed y Insert coin. Anount due 7550 Insert coin. Anount due 2525 Your change = e. Enjoy your coke! Buy another coke? ( Yy to proceed Figure 5: sample test of the program and the outputs

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!