Structured programming and subroutines (procedures and functions)

EasyMediumHard
1234567891011121314
Question 14
Hard

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]

Structured programming and subroutines (procedures and functions) Questions

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