Help with a program capable of producing two pulses lasting 1 second each

What is the issue - creating the two pulses or detecting the switch has been pressed? Not sure what your real issue is from the description.