Skip to content

Course home

Structured programming and subroutines (procedures and functions)

Structured programming and subroutines (procedures and functions)

EasyMediumHard
12345678910111213141516
Question 14

Using C#, write a subroutine to help a retail store review its daily sales performance.

The subroutine must:

  • have the identifier CountHighSales
  • take the number of days the store was open as an integer parameter
  • prompt the user to enter the number of sales transactions completed on each of those days
  • count how many of those days had more than 150 transactions
  • return the completed count of those high-performance 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