Python Code for a Taxi Fare - Computer Science GCSE Exam Question

3 years ago
2

This video shows you how to answer this GCSE past exam question.
Python program that allows a taxi company to calculate how much a 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
◦   charging £2 for every passenger regardless of the distance
◦   charging a further £1.50 for every kilometre regardless of how many passengers there are
•   output the final taxi fare.

Loading comments...