Question 4 2015 · October-November · Paper 23 · 13 marks
Reveal official mark-scheme answer

Official answer for Question 4
Question 23
Show text version of question
Question 4
FALSE FALSE
Question 5
Part (b)
The selection statement (lines 03 – 08) could have been written with more simplified logic.
Rewrite this section of the algorithm in pseudocode.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[3]
Question 6
4 A program is to be written to calculate the discount given on purchases.
(Purchase), the discount rate (DiscountRate) and amount paid (Paid) is calculated as shown in the following pseudocode algorithm.
INPUT Purchase
IF Purchase > 1000 THEN DiscountRate 0.10 ← ELSE IF Purchase > 500 THEN DiscountRate 0.05 ← ELSE DiscountRate 0 ← ENDIF ENDIF
Paid ← Purchase * (1 - DiscountRate) OUTPUT Paid
The algorithm is also to be documented with a program flowchart.
Complete the flowchart by:
- filling in the flowchart boxes
- labelling, where appropriate, lines of the flowchart
Question 7
Question 8
Why this question appears here
72% assigned-topic match · Algorithm design and problem-solving › Algorithms
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_w15_qp_23.pdf
