A function calculateFee has been defined. It takes two parameters: the membership type (as a string) and the number of months (as an integer), and returns the total fee.
Write program code, that uses calculateFee(), to output the total fee for a "Gold" membership of 6 months.
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.