16. Write a class X that consists of a single make routine,
plus attributes. Write a make routine that finds the time and cost of a
car trip. The input data is the distance covered on the trip, the average
speed, the number of litres of petrol used per hundred kilometres, and
the cost of a litre of petrol.