Skip to content

Course home

Representing algorithms

Representing algorithms

EasyMediumHard
123456789
Question 2

Develop an algorithm using either pseudocode or a flowchart that allows an e-scooter rental company to calculate the total rental charge for a customer.

The algorithm should:

  • Prompt the user to enter the rental duration in minutes.
    • The duration entered must be greater than zero.
    • The user should be made to re-enter the duration until the duration entered is valid.
  • Prompt the user to enter the number of safety helmets hired (no validation is required).
  • Calculate the total rental cost by:
    • Charging £1.50 for every safety helmet regardless of the duration.
    • Charging a further £0.20 for every minute of rental regardless of how many safety helmets are hired.
  • Output the final rental cost.
[8]
Markscheme

Representing algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Representing algorithms

208 exam-style questions on AQA GCSE Computer Science Representing algorithms. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank