CS 1063  Lab 1:  Using Static Methods

The Poems Class

Objectives

Hand-in Requirements

All projects and laboratories will be submitted electronically through Blackboard.  Zip up your entire lab folder to submit as the source.  (Right click on the lab folder and follow Send To > Compressed (zipped) Folder (or 7-Zip > Add to "lab1.zip").)  The lab folder should include the following:

Details

Write a program that prints the first verse of "Mary Had a Little Lamb" and the first three verses of "This Old Man".

The main method of the program should print

Lab 1 written by YOURNAME
and call two methods: one to print the first verse of "Mary Had a Little Lamb", and the other to print the first three verses of "This Old Man".

The method to print the first verse of "Mary Had a Little Lamb" should print the title of the poem and call a method for each line in the verse.  One of these methods should be called twice.

The method to print the first three verses of "This Old Man" should print the title of the poem and should call a method for each verse.  Each of these three methods should call another method to print the refrain.

Include the output of your program in a file named PoemsOutput.txt.  In DrJava, one way to do this is to copy-and-paste the text from the Interactions pane to a simple text editor such as Notepad.  Another way to do this is to right-click in the Interactions pane and select "Save Copy of Interactions".  In either case, save the file in your lab folder.

Rubric

Your program should compile without any errors.  A program with more than one or two compile errors will likely get a zero for the whole assignment.

The following criteria will also be used to determine the grade for this assignment: