Write an algorithm, Pseudo Code and Flow Chart for the following scenario:
Suppose you are having Rs. 500. You have purchased one pen priced Rs. 25.0 per
unit, 3 notebooks priced 45 per unit, 1 drawing copy priced 50 per unit. You give the
currency of Rs. 200 to the shopkeeper. Find out the amount shopkeeper will return to
you and also tell the total item purchased.
input:
t = 500 \ amount that you are having
s = 25 + 3*45 + 50
r = t - s \ amount that shopkeeper will return
output:
r
display: 'items purchased: 1 pen, 3 notebooks, 1 drawing copy'
Comments
Leave a comment