Skip to content
MathsGenie logo
Open app

Course home

  1. GCSE
  2. Computer Science AQA
  3. Question bank

Programming concepts

EasyMediumHard
1234567891011121314151617181920212223
Question 23

Write a Python program that calculates the estimated filtration time in hours for an industrial water purification tank with a volume capacity between 1500 and 7500 litres (L).

Your program should:

  • Keep asking the user to enter a tank volume in L until they enter a value that is between 1500 and 7500 (inclusive).
  • Calculate the base filtration time in hours by dividing the volume by 1500.
  • Ask the user if they are using an auxiliary high-flow pump (expecting the user to enter 'yes' if they are).
  • If they are using a high-flow pump, divide the base filtration time by 1.5.
  • Output the final calculated filtration time.

You should use meaningful variable names, correct syntax, and indentation in your answer.

[8]

Programming concepts Questions

  1. GCSE
  2. /Computer Science
  3. /Programming concepts