< previous page page_571 next page >

Page 571
Print December (No parameters)                    
Print all the information for December

J Month (In: secondChar, thirdChar) Out: Function value                    Level 2
IF secondChar is an a
   Return JANUARY
ELSE IF thirdChar is an l
   Return JULY
ELSE
   Return JUNE

A Month (In: secondChar) Out: Function value
IF secondChar is a p
   Return APRIL
ELSE
   Return AUGUST

M Month (In: thirdChar) Out: Function value
IF thirdChar is an r
   Return MARCH
ELSE
   Return MAY

The print modules are composed of output statements that print all the information for the month. To test the program, we code all the print modules as stubs, which print one line stating that the month has been printed.

 
< previous page page_571 next page >