MGriffin_hw4_3

MGriffin_hw4_3 - Documentation Name: Created: April 1 2008...

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

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Documentation Name: Created: April 1 2008 Start GET firstName GET lastName FALSE IF firstNam e is blank TRUE DISPLAY "You left FIRST Name blank, the procedure will terminate" FALSE IF firstNam e is numberi c TRUE FALSE IF lastNam e is blank TRUE DISPLAY "You entered a number for FIRST Name, the procedure will terminate" FALSE IF lastNam e is numberi c DISPLAY "You left LAST Name blank, the procedure will terminate" TRUE DISPLAY "You entered a number for LAST Name, the procedure will terminate" A A WRITE firstName to storage WRITE firstName to storage A WRITE lastName to storage A A Stop BEGIN nameValidation GET firstName GET last Name IF firstName is blank THEN DISPLAY "You left FIRST Name blank, the procedure will terminate" ELSEIF firstName is numberic THEN DISPLAY "You entered a number for FIRST Name, the procedure will ELSEIF lastName is blank THEN DISPLAY "You left LAST Name blank, the procedure will terminate" ELSEIF lastName is numeric THEN DISPLAY "You entered a number for LAST Name, the procedure will ELSE WRITE firstName to storage WRITE lastName to storage ENDIF END TRUE DISPLAY "You left FIRST Name blank, the procedure will terminate" LAY "You d a number RST Name, cedure will minate" A A procedure will terminate" Name, the procedure will terminate" rocedure will terminate" Name, the procedure will terminate" Start READ input file separate month and date FALSE december ? month month= "february" month= "march" month= "april" month= "may" month= "june" Start BEGIN READ input file separate month and date december ? TRU E year= year+1 READ input file Separate month and date IF month= december THE Calculate year= yea ENDIF CASE month "january": month= "february" "february": month= "march" "march": month= "april" "april": month= "may" "may": month= "june" "june": month= "july" "july": month= "august" "august": month= "september "september": month= "octobe "october": month= "november "november": month= "decemb "december": month= "january ENDCASE Concatinate month and y Add new worksheet to pre END month= "june" month= "july" month= "august" month= "september" month= "october" month= "november" concatinate month and year add new worksheet to previous worksheet Stop READ input file Separate month and date IF month= december THEN Calculate year= year + 1 ENDIF CASE month uary": month= "february" ruary": month= "march" rch": month= "april" il": month= "may" y": month= "june" e": month= "july" ": month= "august" gust": month= "september" tember": month= "october" ober": month= "november" vember": month= "december " ember": month= "january" ENDCASE Concatinate month and year Add new worksheet to previous worksheet month= november" month= "december" month= "january" ...
View Full Document

Ask a homework question - tutors are online