Shi Qing Ng (R01562489)
Problem 1
(a) Length and Width.
(b)
Start
Define length of
the rectangle
Read length
Define width of
the rectangle
Read width
Area = Length*Width
Print Area
Stop
Problem 2
(a) 3 parameters need to be supplied.
(b)
Start
Define length of
the room
Read Length
Define width of
the room
Read width
Define height of
the room
Read height
Volume = Length*Width*Height
Print Volume
Stop
Problem 3
(a)
Start
Define length of
the rectangle
Read length
Yes No
Length > 0
Define width of Stop
the rectangle
Read width
Yes No
Width > 0
Area = Length*Width Stop
Print Area
Stop
(b) 2.
Problem 4
2.
(a) Python, Javascript, C, C++, and Java
(b)
3.
(a)
(b)