Due Friday, 1/30/08 - 5:00PM
-
Sign up for the class mailing list at:
https://cs.usfca.edu/mailman/listinfo/cs112
-
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.
-
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.
-
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
|
Attachments
(
4
)
-
Book.java
- on Feb 2, 2009 1:12 PM by Sami Rollins (version 1)
2k
Download
-
BookShelf.java
- on Feb 2, 2009 1:13 PM by Sami Rollins (version 1)
1k
Download
-
DateConverter.java
- on Feb 2, 2009 1:13 PM by Sami Rollins (version 1)
1k
Download
-
LoginCreator.java
- on Feb 2, 2009 1:13 PM by Sami Rollins (version 1)
1k
Download
|