You are going to create a program to solve the following problem:
The heating in a school is to be automated. It will switch on if the average temperature in the school falls below 15oC. Otherwise the heating should be off
The average temperature in the school is calculated by averaging the temperature in three departments: Music, English and Art.
Write a program that asks the user to enter the temperature in each of the three departments. The program should work out the average and display a message stating the average temperature and whether the heating should be on or off
Your teacher will provide you with the School Heating Worksheet via Google Classroom.
To achieve level 4 you need to:
Analyse the required variables
Gather inputs correctly
Calculate the average correctly
Use selection to state correctly if the heating should be on or off
Display output
Test the program using appropriate data
Evaluate the program in terms of its specification and reliabiltiy
Show your understanding of National 5 elements by:
Create a pseudocode plan
Use an array to record class temperatures
Use a loop to print out the temperatures
Use a running total to calculate the average
Correct use of the loop control variable
Use a complex condition
Include normal and extreme test data in your testing
Your worksheet, program and testing evidence should be submitted electronically via Google Classroom.