B
Becky
Hi All..
I'm trying to write a program in java that would look something like
the following:
======================
Welcome to your Library
======================
Creating catalogue.... Done
Populating catalogue.... Done
The current books in the catalogue are:
Title: The Truth
Author: Terry Pratchett
Year: 2000
Title: The Hitchhikers Guide to the Galaxy
Author: Douglas Adams
Year: 1995
Title: The Root of all Evil
Author: JD Frazer
Year: 2001
to build it I was thinking of having three classes: Library (used to
drive the program), Catalogue and Book..
I don't know if I'm in the right track, but in the Library class, have
method filldata() which would create an instance of catalogue and
populate the catalogue and print it..
In the catalogue class have methods such as addbook(), getbook(), and
printCatalogue(), which will talk to and get information from Books
class..
Has anyone ever written something similar? If not, I'm sure it's not
very hard to do, if someone could perhaps write the backbone of the
program and I'll finish up the specifics.. It'd be very helpful..
Thanks..
bec.
I'm trying to write a program in java that would look something like
the following:
======================
Welcome to your Library
======================
Creating catalogue.... Done
Populating catalogue.... Done
The current books in the catalogue are:
Title: The Truth
Author: Terry Pratchett
Year: 2000
Title: The Hitchhikers Guide to the Galaxy
Author: Douglas Adams
Year: 1995
Title: The Root of all Evil
Author: JD Frazer
Year: 2001
to build it I was thinking of having three classes: Library (used to
drive the program), Catalogue and Book..
I don't know if I'm in the right track, but in the Library class, have
method filldata() which would create an instance of catalogue and
populate the catalogue and print it..
In the catalogue class have methods such as addbook(), getbook(), and
printCatalogue(), which will talk to and get information from Books
class..
Has anyone ever written something similar? If not, I'm sure it's not
very hard to do, if someone could perhaps write the backbone of the
program and I'll finish up the specifics.. It'd be very helpful..
Thanks..
bec.