CSC211-101  Homework 1 – Strings and Dates

Due: Tuesday, Sep. 20, 2005

 

This problem is similar to problem 30 on page 80 of our text.

 

Problem statement: Write a Java application that asks the user for her or his full name in the format

first middle last

and replies with the name in the format

last, first middle-initial.

Where the last name is followed by a comma and one space, the first name is followed by one space, and the middle initial is followed by a period. In addition, the current date (formatted as given in the following example) and the day in the year should be output.

 

An example will make this clear.  Here's the result of a session with my program:

 

 

 

Note the input form and output form, yours must be the same.

Submit your program according to:  Project Submissions