Write a program to implement the motor latch circuit for forward and reverse operations:
When the START button is pushed, the motor either run FORWED if the FORWARD button on or REVERSED if the REVERSE is on. Both FORWARD and REVERSE buttons should not be on at the same time
When the START button is pushed and released, the motor should keep running (latched)
The motor will stop when the STOP button is pushed
Use two different output to present the forward and reverse running motors respectively; two separate latches should be use for F and R, respectively
When the START button is pushed, the motor either run FORWED if the FORWARD button on or REVERSED if the REVERSE is on. Both FORWARD and REVERSE buttons should not be on at the same time
When the START button is pushed and released, the motor should keep running (latched)
The motor will stop when the STOP button is pushed
Use two different output to present the forward and reverse running motors respectively; two separate latches should be use for F and R, respectively