A cycle hire company offers two types of bikes:
Create a function, calculateRental(), that takes the number of days and the type of bike as parameters, then calculates and returns the total rental price to pay.
You do not have to validate these parameters.
You must use either:
95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.