Quelpr

CAPE Computer Science Unit 1 · 2016 · Paper 2 · Question 4(b)

A communications company charges 1.25 per minute for the first 20 minutes and 0.25 per minute for any additional minutes. Write an algorithm that reads an integer representing call duration in minutes, then calculates and displays the call cost.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 4(a)Construct a flowchart to represent the provided pseudocode algorithm for reading customer sales until 'enddata'.[11 marks]

More practice: the rest of this paper · more Algorithm Verification and Development questions · all CAPE Computer Science Unit 1 past papers