Skip to content

This is a solution to the pre-release material in the M/J 2015 exam series.

Notifications You must be signed in to change notification settings

v1peridae/temp-logger-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Description

  • This is a solution for the question below:

    TASK 1

    • A data logger records the temperature on the roof of a school twice a day, at midday and midnight. Input and store the temperatures recorded for a month. You must store the temperatures in two one-dimensional arrays, one for the midday temperatures and one for the midnight temperatures. All the temperatures must be validated on entry and any invalid temperatures rejected. You must decide your own validation rules. You may assume that there are 30 days in a month.

    TASK 2

    • Calculate the average temperature for midday and the average temperature for midnight. Output these averages with a suitable message for each one.

    TASK 3

    • Select the day with the highest midday temperature and the day with the lowest midnight temperature. Then output each of these temperatures, the corresponding day and a suitable message. Your program must include appropriate prompts for the entry of data. Error messages and other outputs need to be set out clearly and understandably. All variables, constants and other identifiers must have meaningful names. Each task must be fully tested.

About

This is a solution to the pre-release material in the M/J 2015 exam series.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages