Professional Documents
Culture Documents
PROBLEMS &
Review Questions 1 ALGORITHMS
1 When solving a problem, why is it necessary that the first step be the definition of the
problem?
(c) (d)
(e)
(f)
6 Of these structures
A. two way branching B. test first loop C. test last loop
D. multiple branching
which would be the most appropriate for the following tasks:
1. Nailing palings to a fence
2. Deciding on a mornings activity according to the weather.
3. Mixing the dough for scones.
4. Using the word is or the word are in a sentence.
7 Suppose you have a car jack positioned correctly under a car which has a flat tyre.
You will need to pump on the handle of the jack to raise the car.
(a) What type of looping structure is appropriate for the pumping of the jack handle?
(b) Draw and label a simple N-S diagram for this process.
set x to 1
set y to 1
repeat 6 times
set z to x + y
set x to y
set y to z