• Post Reply Bookmark Topic Watch Topic
  • New Topic

Please Help  RSS feed

 
edo travnik
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a task to create program (I am not a Java programmer) that simulate a simple library system which comprises of three classes :
Book, Catalogue and Library where Library is driver class and books stored in an array.

� A Book has a title, author, and year published. It should have
get and set methods for these data members.It must
have a method printDetails() in the Book class.
� Catalogue class needs to talk to Book class. This class must have three
methods namely- addBook(), getBook() and printCatalogue()
� Library class should drive the system. It should have a method
fillData(). This method should create an instance of catalogue and
populate the catalogue and finally print it.
Each of three classes must have a constructor.

Thank you in advance !
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry, but if you have gotten this task and are not a java programmer, and it needs to be done in java, then you should either have
1) not accepted the task or
2) returned the task as is and pony up that you can't do it.

We are not going to do it for you. If the above 2 options do not work for you, then you are going to have to look into hiring a developer to do it for you.
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sounds like homework ? nobody here will solve your homework but everyone will help you when get stuck and ask a more detiled question.
and "help me" is a pretty bad title for a post! try to put something more descriptive.


pascal
 
edo travnik
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your comments !
regards, edo
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!