21Hard
0/8

Write a Python program that calculates the estimated daily energy output of a solar array.

Your program should:

  • keep asking the user to enter the solar panel generation capacity in kilowatts (kW) until they enter a value that is between 2.5 and 12.5 (inclusive)
  • calculate the baseline daily energy output in kWh by multiplying the capacity by 5.2
  • ask the user if solar tracking is enabled (expect the user to enter yes if it was)
  • if solar tracking is enabled, multiply the calculated baseline daily energy output by 1.35
  • output the final estimated daily energy output.

You should use meaningful variable name(s), correct syntax and indentation in your answer.

[8]

Programming concepts Questions

Practise AQA GCSE Computer Science Programming concepts with exam-style questions for GCSE Computer Science. 100 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Programming concepts Questions

  1. GCSE
  2. /Computer Science
  3. /Programming concepts