ECZ 2020 · GCE Paper 2 · Question 4 — Computer and Calculator

Question from ECZ 2020 · GCE Paper 2 · Question 4

(a) The programme below is given in the form of a pseudocode. Start Enter radius If radius < 0 Then display "error message" and re-enter positive radius Else enter slant height If slant height < 0 Then display "error message" and re-enter positive slant height Else Area = π * r * (r + slant height) End if Display Area Stop Draw the corresponding flow chart for the information given above.[5]

Diagram for part (a)

Verified working — step 1

Translate the pseudocode into a flowchart with two re-entry loops.

(b) Express 2x - 1 - 31 - x as a single fraction in its simplest form.[3]

Verified working — step 1

Note that 1 - x = -(x - 1), so 31 - x = -3x - 1.

The full step-by-step working and final answer are included with Premium — checked against ECZ marking standards.

Original examination question © Examinations Council of Zambia. Worked solution and commentary © G12 Titan — not to be reproduced without permission.

Have a different question?

Search it — if it is from a past paper or a school mock, chances are we have it worked out, or one that uses the same method.

Search any past-paper question

More Computer and Calculator questions from past papers