Computer Studies

In a book fair, you purchased the following books:

Harry Potter Books : ₹ 950
English Dictionary : ₹ 1200
Encyclopedia : ₹ 1600

You gave an amount of ₹ 4000 to the shopkeeper. Write a program in QBASIC to calculate the total amount to be paid to the shopkeeper and the money refunded by him.

QBASIC

QBASIC: Cmds & Stmts

57 Likes

Answer

Cls
Let HPB = 950
Let ED = 1200
Let EN = 1600
Let TOTAL = HPB + ED + EN
Let AMT = 4000
Let REFUND = AMT - TOTAL
Print "TOTAL MONEY TO BE PAID = Rs. "; TOTAL
Print "REFUND = Rs. "; REFUND
End

Output

TOTAL MONEY TO BE PAID = Rs. 3750
REFUND = Rs. 250

Answered By

34 Likes


Related Questions