Skip to content

Course home

Representing algorithms

Representing algorithms

EasyMediumHard
123456789
Question 3

Develop an algorithm using either pseudocode or a flowchart that allows a 3D printing hub to calculate the total charge for a printing job.

The algorithm should:

  • Prompt the user to enter the printing duration in hours.
    • 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 mass of 3D printer filament used in grams (no validation is required).
  • Calculate the total printing cost by:
    • Charging £0.04 for every gram of filament used.
    • Charging a further £3.50 for every hour of printing duration.
  • Output the final printing 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