Question Constellation Sign up for free
Q14.2 6 marks

AQA · GCSE · Computer Science · Higher · Paper 1A Computational thinking and programming skills (C#)

Using C#, write a subroutine to help a museum review the number of visitors in a month.

  • 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 meaningful variable name(s) and C# syntax in your answer.

Your answer