Course Content
Paper 2 – Problem Solving Approach -Practical
0/102
Past Paper-2 May/June 2025
Past Paper-1 May/June 2025
Download Files
0/1
Olevel : Computer Science 2210 / IGCSE 0478 : Recorded

Selection: Practice Session 1 (multiple ways)

Create the “all questions” pseudocode here.

Create a python code of the given pseudocode.

DECLARE pid : INTEGER
DECLARE dish : STRNG
DECLARE qty: INTEGER
DECLARE total : INTEGER
OUTPUT “ENTER PRODUCT ID:”
INPUT pid
OUTPUT “ENTER PRODUCT QTY:”
INPUT QTY
IF pid = 1
THEN
         pname =”egg and chips”
         price=380
ELSEIF pid = 2
         pname=”curry and chips”
         price=450
ELSEIF pid = 3
         pname =”pizza and chips”
         price=250
ELSEIF pid =4
         pname=”roll and chips”
         price=150
ELSE
          OUTPUT “WRONG PRODUCT ID “
 ENDIF
TOTAL = qty *price
OUTPUT “==============iNVOICE===============”
OUTPUT “PRODUCT ID : “, pid
OUTPUT “PRODUCT NAME : “,dish
OUTPUT “PRODUCT QTY : “, qty
OUTPUT “PRODUCT PRICE: “, price
OUTPUT “TOTAL BILL : “, total
OUTPUT “====================================”

Write Python code and run it

You cannot copy content of this page