Skip to content

Course home

Representing algorithms

Representing algorithms

EasyMediumHard
123456789
Question 7

Develop an algorithm, using either pseudo-code or a flowchart, that helps a rooftop solar cooperative estimate the daily energy generation (in kWh) of a solar panel installation based on forecast conditions.

Your algorithm should:

  • get the user to enter whether the season is "summer" or "winter"
  • get the user to enter the forecast cloud cover percentage (they should enter an integer between 0 and 100 inclusive; if the number falls outside of this range then they should be made to re-enter another number until they enter a valid cloud cover)
  • calculate the base solar energy generation (in kWh) using the following rules:
    • 24 kWh is generated if the cloud cover is between 0% and 20% inclusive,
    • 15 kWh is generated if the cloud cover is between 21% and 60% inclusive,
    • and 6 kWh is generated if the cloud cover is higher than 60%
  • decrease the estimated generation by 60% (multiply by 0.4) if the season is "winter"
  • output the final estimated daily energy generation.
[9]
Markscheme

Representing algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Representing algorithms

208 exam-style questions on AQA GCSE Computer Science Representing algorithms. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank