Question: This is Python question. Write a program, which helps the dealer to count how he will return money to the customer. The program asks the

This is Python question.

Write a program, which helps the dealer to count how he will return money to the customer. The program asks the sum of the purchase. Then if counts how many bank notes and coins he will return to the customer. The program asks the total sum of the purchases and the amount of money the customer gave. Then it will count the optimal (minimum) number of bank notes and coins to return. The bank notes are 20, 10 and 5 euros. The coins are 2, 1, 0.5, 0.2 and 0.1 euros. The prices are rounded to nearest 10 cents. The maximum amount of purchase is 50 euros and maximum amount of money that the customer gives is 55 euros. The user interface of the program is shown below. Evaluation of the exercise: maximum 10 points (reading inputs 2 p + control structures and calculations 6 p + output 2 p).

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!