Moderation Exercise 1 – Central Heating
The heating system in a school should be switched on if the average temperature is less than
17 degrees Celsius (˚C). The average temperature is found from the temperatures in the Art,
English and Music Departments. You are required to write a program that allows the user to
input the three temperatures. The program calculates and displays the average temperature
then displays ‘Heating should be on.’ or ‘Heating should be off.’ as appropriate.
You may practice this task at home, but won’t be able to refer to any notes or files when assessed.
Submit the following for marking in 1-word document:-
1. Your code listing
2. Screenshots for suitable test data
Comments
Leave a comment