Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

6. Are my sources reliable?

Answered: 1 week ago

Question

5. Are my sources compelling?

Answered: 1 week ago