{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

221HW3

# 221HW3 - 4.5(11,38,48,true 4.6(11,25,48,true 4.7 Integer...

This preview shows page 1. Sign up to view the full content.

CSE 221 Homework 3 Alli Sayre 28 March 2008 1. Read Unit 4 and answer all of the Still Awake? exercises. 4-1. It would not be very useful because there is no component controlling the overall picture, so there is potential for an impossible time value to be created. The clock could only assume a limited set of values. 4-2. There are 4 parameters in the Set_Hours operation. 4-3. Incoming values. It’s not like that because the Am/Pm part controls that parameter. 4.4 (3,25,48,true). 4.4 0 <= self_seconds <=59
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 4.5 (11,38,48,true). 4.6 (11,25,48,true) 4.7 Integer 4.8 It explains the return value of the function. 4-9. Return value 4-10 function Integer Get_Minutes ( ) is_abstract; /*! preserves self ensures Get_Minutes = self.minutes !*/ 4-11 function Integer Get_Seconds ( ) is_abstract; /*! preserves self ensures Get_Seconds = self.seconds !*/ 4-12 my_clock = 8,7,43 true your_clock = 11,7,6,false transfer_minutes = 2 my_clock = 8,2,43,true your clock = 11,2,6,false transfer_minutes = 2...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online