Skip to content

Course home

Structured programming and subroutines (procedures and functions)

Structured programming and subroutines (procedures and functions)

EasyMediumHard
12345678910111213141516
Question 13

Using C#, write a subroutine to help a meteorological station analyze wind speed data.

The subroutine must:

  • have the identifier CountStormyDays
  • take the number of days in the observation period as an integer parameter
  • prompt the user to enter the maximum wind speed (as an integer in km/h) recorded on each of those days
  • count how many of those days had a maximum wind speed strictly greater than 75 km/h
  • return the completed count of those stormy days.

You should use meaningful variable names and correct C# syntax in your answer.

[6]
Markscheme

Structured programming and subroutines (procedures and functions) Questions

  1. GCSE
  2. /Computer Science
  3. /Structured programming and subroutines (procedures and functions)

131 exam-style questions on AQA GCSE Computer Science Structured programming and subroutines (procedures and functions). Each one has a worked solution and a mark scheme showing where the marks go.

Question bank