Develop a program that will latch on an output `B' 20 seconds after input A has been turned on. After `A' is pushed, there will be a 10 second delay until `A' can have any effect again. After `A' has been pushed 3 times, `B' will be turned off.