0% found this document useful (0 votes)
5 views5 pages

Lab 4

The document outlines problems related to calculating the area and volume of geometric shapes, specifically rectangles and rooms. It includes flowcharts for each problem, detailing the steps for defining dimensions, reading inputs, and computing the area or volume. Additionally, it mentions programming languages relevant to the problems, including Python, Javascript, C, C++, and Java.

Uploaded by

Ng Shi Qing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views5 pages

Lab 4

The document outlines problems related to calculating the area and volume of geometric shapes, specifically rectangles and rooms. It includes flowcharts for each problem, detailing the steps for defining dimensions, reading inputs, and computing the area or volume. Additionally, it mentions programming languages relevant to the problems, including Python, Javascript, C, C++, and Java.

Uploaded by

Ng Shi Qing
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

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)

You might also like