We are providing a starting point for your program, namely the program shell I talked an\bout in class. You can obtain this program shell and a working solution executable by copying the following files:
~mc38/labs/many-clocks/many-clocks.cc
~mc38/labs/many-clocks/solution
The file many-clocks.cc will compile and display a message
telling (briefly) you what to do. You should also probably run
solution so that you know what your goal is.
Check-offs: We will check you off at the following points:
angleOfHourHand, and an appropriately written
Makefile.
As the book describes, documentation involves comments at the head describing what the program does, and a brief comment at the head of each procedure saying what the procedure computes. Since you'll choose clear variables and procedure names, each comment can be quite short. Remember to state any preconditions, if there are any.
angleOfMinuteHand,
radialSegment, and drawTick, including
testing and documentation.
You can demonstrate testing either by code in your main (which you'll later remove) or set's in your gdb buffer.
drawClock and
drawLabeledClock, including testing and documentation.
main so that the program does what it should.