Solve all Questions:
Apply the code in the pseudocode editor given below.
Instructions:
Press the Maximize button to change it to full screen.
Delete sample code file from right side
Create new file with name of Qno1 and start writing Pseudocode
Construct all the questions given in the interactive book.
“<-” use it to put arrows in for the assignment.
There are three areas: “files”, “editor”, “Console”
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
