Question 14
AQA Computer Science June 2024 Paper 1B (8525/1B)GCSE7 marks
On the specification
- 14.1
- 3.2 Programming
- 14.2
- 3.2 Programming
Question text
14.1 State one property of local variables that is not true for all variables. box [1 mark] 14.2 Using Python, write a subroutine to help a museum review the number of visitors in a month. The subroutine must: • have the identifier countDays • have the number of days a museum was open in the last month as a parameter • get the user to enter the number of visitors to the museum for each of those days • count how many of those days the museum had more than 200 visitors • return the count. You should use indentation as appropriate, meaningful variable name(s) and Python syntax in your answer. The answer grid below contains vertical lines to help you indent your code. [6 marks]