1. We want to add a button to the tally counter in Section 9.2 that allows an operator to undo accidental button click. Provide a method
that simulates such a button. As an added precaution, make sure an undo doesn’t cause the counter to be less than zero.
a) Your code with comments
b) A screenshot of the execution
Leave a reply