Note AcademyNote Academy

Computer Science (AS & A Level) · Oct / Nov 2022 · Paper 23 · Question 3

9618

As printed in the paper

The question as text

An algorithm is needed to process a sequence of numbers. Numbers may be positive or negative and may be integer or decimal. The algorithm will: • prompt and input one number at a time until the value zero is input • sum the negative numbers • sum the positive numbers • when zero is input, output the two sum values and then end. Describe the algorithm needed. Do not include pseudocode statements in your answer. [5]

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.