Currently Empty: $0.00
Paper 1 – Theory (Typically 2 hours)
0/20
Introduction Paper 2 – Practical (Typically 2 hours) done
0/2
Problem Solving
0/5
Relation of Real Life and Programming done
0/5
Stages of Programming
0/14
Dealing with Constructs
0/24
Question Set 3
0/3
Flow charts – The easy concept
Concept of Validations
0/6
Question Set 4
0/2
Dealing with 1D Arrays
Dealing with 2D Arrays
Linear search with !D Array – The common pattren
Bubble Sort – The common Pattren
Modular Programming – Concept of Procedures and Functions
Handling Errors in Pseudocode
File Handling
File handling – with 1D Array
Logic Gates
Databases
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