There are four normally open input sensors to an annunciator system that switches the output alarm ON if some operational malfunction occurs. Design a program that operates the alarm system as follows:
1. if any one input is closed, nothing happens
2. if any two input are closed, a green pilot light goes ON
3. if any three inputs are closed, a yellow pilot light goes ON
4. if all four inputs are closed, a red pilot light goes ON