Question 5

AQA Computer Science Specimen Paper 1B (8525/1B)GCSE7 marks

On the specification

3.2 Programming
Question text

5 Write a Python program that allows a taxi company to calculate how much a box taxi fare should be. The program should: • allow the user to enter the journey distance in kilometres (no validation is required) • allow the user to enter the number of passengers (no validation is required) • calculate the taxi fare by o charging £2 for every passenger regardless of the distance o charging a further £1.50 for every kilometre regardless of how many passengers there are • output the final taxi fare. You should use meaningful variable name(s), correct syntax and indentation in your answer. The answer grid below contains vertical lines to help you indent your code accurately. [7 marks]