ECZ 2023 · GCE Paper 2 · Question 5 — Computer and Calculator

Question from ECZ 2023 · GCE Paper 2 · Question 5

(a) The program below is given in the form of a pseudocode. Begin Enter n IF n < 0 THEN Display 'error n must be positive' ELSE sum = n2 * [2*a + (n - 1)*d] ENDIF Display sum End Draw a corresponding flowchart for the information given above.[5]

Diagram for part (a)

Verified working — step 1

Translate each pseudocode line into one flowchart symbol.

(b) Solve the equation 8x2 - 9x + 2 = 0, giving your answers correct to 2 decimal places.[5]

Verified working — step 1

Use the formula with a = 8, b = -9, c = 2.

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