You need help on this question
Write a documented program that will implement all of the following tasks:
1. When input A is closed, turn on and hold on outputs U and V until A is opens.
2. When input A is closed and either input B or C are open, turn on output W, otherwise, it should be off
3. When input D is closed or open , turn on output X
4. When input D is closed, turn on output Y and turn off output Z.
Use I/O simulation and the following adressed tosimulate the program:
A= I:1/0
B= I:1/1
C= I:1/2
D= I:1/3
U= O:2/0
V= O:2/1
W=O:2/2
X= O:2/3
Y= O:2/4
Z= O:2/5