Currently Empty: $0.00
Introduction To Syllabus
0/3
Relation of Real Life and Programming
0/7
Stages of Programming
0/14
Dealing with Constructs
0/24
Question Set 3
0/3
Concept of Validations
0/6
Question Set 4
0/2
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