Lab4 Working on programming project 1 (Echo)

Preparation

Before coming to lab you should have read the programming project specification. In fact, you should have at least started on the program by now.

What to do

For this lab you must complete a program that simply echoes the line the user enters. The program should start by printing "ready" to indicate that it is ready for input.

You should use input.nextLine() to read an entire input line, where input is a reference to a Scanner object.

Here is a sample execution. The user input is in bold.

os-prompt%java Echo
ready
This is a test.
This is a test.
os-prompt%
Please make sure that the program you submit for this lab follows the same programming style guidelines that are used for the programming projects.

Make sure the program is properly commented, then submit the program using WebCT ("Lab4 - work on Program1").

When that is done, you should continue working on the programming project with whatever time you have left.