Use an implementation of the digital counter class described in Exercise 3 on page 56. Add a decrement behavior.
Simulate the behavior of the buttons using the standard input stream and respond to the characters `m' (meaning increment minutes), `s' (meaning increment seconds), and `c' (meaning start the count down). Show the state of the display once after each `m' or `s' button press event, and show each of the display states in counting down after a `c' button press event until the counter reaches 0.
Asst2.dyl
containing class, function, and method definitions necessary
to implement a class <egg-timer> that can
be used by the following main program:
Budd's new solitaire version has been installed
in
~jnw/Object/solitaire. Be warned that this file contains
incompatibilities with the current version of g++ and
Interviews that mean it will not compile. See the
homework assignment due
29 March. One problem involves the name Card,
which is defined by an Interviews include file to be
ivCard. Wilson will tell you in class how
to avoid this problem.