Final numerical grade was rounded up. The following scale was used:
93+ A
90+ A-
87+ B+
83+ B
80+ B-
77+ C+
73+ C
70+ C-
67+ D+
60+ D
0+ E
Have a great holiday season!
Final numerical grade was rounded up. The following scale was used:
93+ A
90+ A-
87+ B+
83+ B
80+ B-
77+ C+
73+ C
70+ C-
67+ D+
60+ D
0+ E
Have a great holiday season!
To make it more clear, here is the behavior of a switch press and unpress after that:
When you press a switch (button) the corresponding LED toggles. Let us say that the switch goes to a certain state, A, after pressing. When you unpress the button, the LED remains in state A.
So pressing causes the toggle, unpressing does nothing.
Your program should not make any assumptions that are not given in the problem statement. Your program should be general. For example, it should not assume that you have only two switches on your launchpad.
The Logic is:
Pressing S1 toggles the Red LED
Pressing S2 toggles the Green LED
Pressing any other switch (if you had more than two switches on your board) does nothing to the LEDs
Do not use the logic:
Pressing S1 toggles the Red Switch
Pressing any other switch toggles the Green LED
Due Date: Tuesday, Dec. 8. 11:59pm