I'm at a loss as to how to do this. What is it that confuses me?
There are four input sensors to an annunciator system that switch on if some operational malfunction occurs.
Design a program that operates the alarm system as follows:
- if any one input is on nothing happens.
- If any two inputs are on a green light goes on.
- if any three inputs are on a yellow light goes on.
- if all four inputs are on a red light goes on.
There are four input sensors to an annunciator system that switch on if some operational malfunction occurs.
Design a program that operates the alarm system as follows:
- if any one input is on nothing happens.
- If any two inputs are on a green light goes on.
- if any three inputs are on a yellow light goes on.
- if all four inputs are on a red light goes on.