You are on page 1of 1

PSEUDO CODE ( TASK B1 )

1. BEGIN

2. DECLARE Month as INT ( Integer )


3. DECLARE ItemCode and PaymentMode as CHAR ( Character )
4. DECLARE ItemPrice, Discount, Rate, AmountToPay and NumberOfInstalment
as FLOAT

5. READ ItemCode
6. READ ItemPrice
7. READ Rate
8. READ PaymentMode

9. CALCULATE Discount = ItemPrice * Rate / 100


10. CALCULATE AmountToPay = ItemPrice – Discount

11. IF PaymentMode is equal to ‘ f ’ or ‘ F ’ THEN


11.1 DISPLAY ItemCode, ItemPrice, Discount, AmountToPay
11.2 END IF

12. ELSE IF PaymentMode is Equal to ‘ i ’ or ‘ I ’ THEN


12.1 READ Month
12.2 CALCULATE NumberOfInstalment = AmountToPay / Month
12.3 DISPLAY ItemCode, ItemPrice, Discount, AmountToPay, Month,
NumberOfInstalment
12.4 END IF ELSE

13. ELSE
13.1 DISPLAY Error, Can’t Identify The Payment Mode

14. END

You might also like