Lab 1

Due Friday, 1/30/08 - 5:00PM

  1. Sign up for the class mailing list at: https://cs.usfca.edu/mailman/listinfo/cs112
  2. PP4.4 -  Design and implement a class called Book that contains instance data for the title, author, publisher, and copyright date. Define the Book constructor to accept and initialize this data. Include setter and getter methods for all instance data. Include a toString method that returns a nicely formatted , multi-line description of the book. Create a driver class called BookShelf, whose main method instantiates and updates several Book objects.
  3. PP3.1 - Write an application that prompts for and reads the user's first and last name (separately). Then, print a string composed of the first letter of the user's first name, followed by (no more than) the first five characters of the user's last name, followed by a random number in the range 10 to 99.
  4. Implement an application that prompts the user for three integers - a month, a day, and a year.  Convert the month integer to the appropriate month string and output a date of the format Month Day, Year.  Example: input - 3 4 2008 output - March 4, 2008
Submission Instructions
ċ
Book.java
(2k)
Sami Rollins,
Feb 2, 2009, 1:12 PM
ċ
BookShelf.java
(1k)
Sami Rollins,
Feb 2, 2009, 1:13 PM
ċ
DateConverter.java
(1k)
Sami Rollins,
Feb 2, 2009, 1:13 PM
ċ
LoginCreator.java
(1k)
Sami Rollins,
Feb 2, 2009, 1:13 PM
Comments