CSU 213 Assignment 2: Spring 2007

Grading Rubric: Total = 38 points


6.7 Company chart 12 points total
6 points for Data definitions: 2 points -- including the purpose statements with the data definitions 1 point -- Employee interface to account for two different types of employees 1 point -- the three fields that are common to both subclasses 2 points -- for the definition of the list of employees 3 points for Class Diagram 1 point -- employee classes 1 point -- the list 1 point -- connecting the two 3 points for Examples 1 point -- examples of workers (employees with no subordinates) 1 point -- example of empty list of employees 1 point -- example of a boss
River crossing exercise: 6 points total
3 points for Class diagram 1 point -- the overall class should have two river banks and the battery 1 point -- a riverbank should be a list of people 1 point -- each person should have the info about time to cross 3 points for Examples 1 point -- list of people examples 2 points -- examples of the puzzle start and puzzle end (it is OK if the option where there are people stranded with no battery life left is not included) Note: the question of who is crossing the bridge at the current time is irrelevant. The solution consists of transitions between states as shown below, going on until all people have crossed the bridge or until there is no battery life left.
Tivo exercise: 20 points total
5 points Method duration In the class TimeSlice 1 point -- if it uses the method 'minutes' already defined in ClockTime 1 point -- purpose statements 1 point -- correct code 1 point -- examples In the class ShowTime 1 point -- examples 8 points Method endsBefore In the class TVShow or ShowTime 1 point -- if it uses the method defined in TimeSlice to compare the ending time of one show with the starting time of another show 1 point -- examples for that method 1 point -- if it uses the method defined in Date to compare the date of one show with another one 1 point -- examples for that method For the method 'endsBefore' in the top class (showTime or TVShow) 1 point -- purpose statements 1 point -- correct code 2 points -- examples: 1 point for comparing show on different dates 1 point for comparing shows on the same date 3 points Method newTime 1 point -- purpose statements 1 point -- code delegates the construction of new time slice/show time to another class (ok if it only delegates one level down, though ideally, the request would be passed on) 1 point -- examples 4 points for including Templates in each of 1 point -- TVShow 1 point -- ShowTime 1 point -- TimeSlice 1 point -- ClockTime and Date