- Value 1: Amount to be paid by the customer
- Value 2: Amount received from the customer
The program should then find out how many banknotes or coins of different values should be returned.
Your program will accept banknotes of £20, £10 and £5 and the following coins: £2, £1, 50p, 20p, 10p, 5p, 2p, 1p.
The following flowchart will help you get started:
Add some validation rules to ensure that the user has entered valid currency values. You should also check that the amount received from the customer is greater or equal to the amount to be paid.
Solution...The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area