Computer Studies

'LEXPO' announces 25% discount on all leather items. You purchased a leather bag that costs ₹ 660 and a belt priced ₹ 160. Write a program in QBASIC to calculate the amount to be paid to the shopkeeper.

QBASIC

QBASIC: Cmds & Stmts

55 Likes

Answer

Cls
Let LB = 660
Let B = 160
Let TOTAL = LB + B
Let DISC = 25 / 100 * TOTAL
Let AMT = TOTAL - DISC
Print "AMOUNT TO BE PAID = Rs. "; AMT
End

Output

AMOUNT TO BE PAID = Rs. 615

Answered By

30 Likes


Related Questions