Quelpr

CAPE Computer Science Unit 1 · 2013 · Paper 2 · Question 3(b)

A cellular company charges 1.50 per minute for the first 10 minutes and 0.50 per minute for any additional minutes. Write an algorithm that reads an integer value representing the number of minutes used for voice calls, then calculates and prints the total cost.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 3(a)Briefly describe any THREE stages that a software company would generally follow when creating software for a client.[6 marks]
  2. 3(c)(i)Construct a flowchart that reads student data (each line having a student ID followed by scores in 3 subjects, terminated by ID 9999) and, for each student,…[8 marks]
  3. 3(c)(ii)In the same flowchart or problem solution, count and print the total number of students in the class (e.g., 'There are 3 students in the class').[5 marks]

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