Hw 10: Type Design
Hw 10: Type Design

 

Due Date: Friday, April 15, 2016, 23:55

See the General Guidelines for homework assignments.

This assignment must be done individually.

Consider designing a software model of the Moon Beam clock from the specification below.  Identify a collection of potential types/classes that would be useful in this system.  Apply one or more of the type/class identification strategies discussed in class. Then use the type/class design techniques to determine a list of final/preliminary types/classes. Give a descriptive name for each type/class you would include in your system.  Your submssion must consist of your list of  potential types/classes, followed by your list of final/preliminary types/classes and a short summary of why you choose or eliminated potential types/classes from the final design. Do not include any other types/classes in your answer.

Moon Beam clock specification

The Big Ben company came up with a clock that design experts still call one of the best ever, the Moon Beam. The Moon Beam clock flashes a gentle blinking alarm light for four minutes before the chime alarm sounds. Features include a streamlined moonbeam-yellow case and genuine glass face with illuminated 12-hour dial, snooze function, easy-to-read numerals, and a replaceable 25-watt bulb.  Time is reported with an error less than two seconds per month.  The Moon Beam clock operates on a standard 120-volt electric outlet, and has a built in battery backup for power outages. 5"H, 6.5"W, 2"D.

 

 

Computer Science 2104 Introduction to Problem Solving
D. Barnette