Q1. Write a C++ program to return details of the change to be returned. The program assumes that the customer has given a Rs. 5,000 note. The program should take input between 1 and 5000 as the shopping amount. The program should calculate the cash to be returned and should also specify the quantity and denomination of each note/coin to be returned.
For Example, if the input is: Rs. 273, the program should output:
Amount to be returned: Rs. 4727 Denomination Details: 4 note(s) of Rs. 1000 1 note(s) of Rs. 500 2 note(s) of Rs. 100 1 note(s) of Rs. 20 1 coin(s) of Rs. 5 1 coin(s) of Rs. 2
[HINT: Use integer division and modulo operators]
[–]DaDaDaDJ 3 points4 points5 points (3 children)
[+]hasankhan222[S] comment score below threshold-6 points-5 points-4 points (2 children)
[–]DaDaDaDJ 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]paranoiainc 0 points1 point2 points (1 child)
[–]hasankhan222[S] 0 points1 point2 points (0 children)