An automated agricultural drone service irrigates fields based on crop type and land area:
Create a function, calculateIrrigationCost(), that takes the area in acres and the crop type as parameters, then calculates and returns the total cost to charge.
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.