Hot Hand Emojji Images Intro price. Get Histudy for Big Sale -95% off..

Histudy is a education website template. You can customize all.

Course Content
Conclusion:
0/1
COMPUTER SCIENCE 2210 : OLEVEL : FREE TRIAL


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

EduQuest HQ offers a complete educational journey. From O-levels to university-level programs

Newsletter

Coming Soon

Apply play store
SORT By Rating
SORT By Order
SORT By Author
SORT By Price
SORT By Category