A cloud hosting provider offers two types of virtual machine instances:
Create a function, calculateComputeCost(), that takes the number of hours and the instance type as parameters, then calculates and returns the total billing cost.
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.