You are on page 1of 2

LECTURE EXERCISE 6

1. Algorithm can be represented by using pseudocode and flowchart.

(a) What is the importance of algorithm. [1 m]

As a guide to write program

(b) Iden fy type of control structure used in each of pseudocode below.

Pseudocode Type of Control


Structure

Repe on

Sequence
Start
Read no1, no2, no3
Calculate total:
total = no1 + no2 + no3
Calculate average:
average = total / 3
Print average
Stop
Pseudocode Type of Control
Structure

Selec on

Seleciton

You might also like