2(a)(i)Data Types Variables Input OutputMedium1 mark
A washing machine contains:
- two trays for the washing powder
- a user interface display
- five sensors.
The washing machine control program includes the following variables:
| variable | description |
|---|---|
| MainsOn | TRUE when the mains power is on |
| WaterOn | TRUE when the water supply to the machine is turned on |
| DisplayOn | TRUE when the user interface display is active |
| Tray1 | TRUE when it detects washing powder in tray 1 |
| Tray2 | TRUE when it detects washing powder in tray 2 |
Identify the data type used for the five variables.