Question: Write a documented program that: Counts up each time Pushbutton 1 is pressed and counts down each time Pushbutton 2 is pressed. As the accumulated
Write a documented program that: Counts up each time Pushbutton 1 is pressed and counts down each time Pushbutton 2 is pressed. As the accumulated value of the counter reaches 6, Light 1 turns on and stay on for 5 seconds. While Light 1 is on, the counter can be incremented or decremented with pushbuttons 1 and 2. When the accumulated value of the counter is between 8 and 10, Lights 2 and 3 turn on for 5 seconds. Resets the counter to 0 with Pushbutton 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
