9.2 Algorithms
47 questions in this subtopic. Open a question to solve it and check the official answer.
Algorithms · 13 marks · official answer ready
(i) Write the Boolean expression corresponding to the following logic circuit: A B X C ............................................................................................…
Algorithms · 13 marks · official answer ready
4 FALSE FALSE [4] 5 (b) The selection statement (lines 03 – 08) could have been written with more simplified logic. Rewrite this section of the algorithm in pseudocode. ..........…
Algorithms · 3 marks · official answer ready
(b) The selection statement (lines 03 – 08) could have been written with more simplified logic. Rewrite this section of the algorithm in pseudocode. ..............................…
Algorithms · 6 marks · official answer ready
3 Regular customers at a supermarket use a rewards card at the point-of-sale. Points are calculated from every transaction and added to the points total stored on the card. One re…
Algorithms · 13 marks · official answer ready
4 FALSE FALSE [4] 5 (b) The selection statement (lines 03 – 08) could have been written with more simplified logic. Rewrite this section of the algorithm in pseudocode. ..........…
Algorithms · 5 marks · official answer ready
(ii) Rewrite the algorithm in part (b), using pseudocode, to reduce the number of unnecessary comparisons. Use the same variable names where appropriate. .........................…
Algorithms · 5 marks · official answer ready
(ii) Rewrite the algorithm in part (b), using pseudocode, to reduce the number of unnecessary comparisons. Use the same variable names where appropriate. .........................…
