1,105,263 Community Members

ClassBook HELP.

Member Avatar
ITshard
Newbie Poster
5 posts since Aug 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

sorry for my english but im really so desperate. This is due next week monday, and i don't know what do to or even where to start. Our professor didn't explain this homework , she just gave us a photocopy problem, we dont have any reference to look at. soo i hope you guys can help me.

HERE'S THE PROBLEM:

a.) Some of characteristis of a book are the title, author(s), publisher, ISBN, price, and year of publication. Design the class book that defines the book as an ADT.

Each object of the *class BOOK* can hold the following information about a book; title, up to four authors, publisher, ISBN, price, year of publication, and number of copies in stock. To keep track of the numbers of authors, add another instance variable.
Include the methods to perform various operations on the objects of *Book*. For example, the usual operation that can be performed on the title are to show the title, set the title, and check whether operations a title is actual title of the book. Add similar operations for the publisher, ISBN, book price, and authors. Add the appropriate constructors.

THANK YOU FOR HELPING ME!

Member Avatar
NormR1
Posting Sage
7,723 posts since Jun 2010
Reputation Points: 563 [?]
Q&As Helped to Solve: 793 [?]
Skill Endorsements: 16 [?]
Team Colleague
 
0
 

You need to post the code you are working on and ask specific questions about the problems you are having. If you are getting errors, please post the full text of the error messages.

Member Avatar
ITshard
Newbie Poster
5 posts since Aug 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

but, i dont know how to start the problem.

Member Avatar
zeroliken
Nearly a Posting Virtuoso
1,222 posts since Nov 2011
Reputation Points: 79 [?]
Q&As Helped to Solve: 216 [?]
Skill Endorsements: 15 [?]
 
0
 

Do you have an idea what classes and methods are and how should they work?

Member Avatar
ITshard
Newbie Poster
5 posts since Aug 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

no. we have just started in one and two dimensional array. :(

Member Avatar
zeroliken
Nearly a Posting Virtuoso
1,222 posts since Nov 2011
Reputation Points: 79 [?]
Q&As Helped to Solve: 216 [?]
Skill Endorsements: 15 [?]
 
0
 

Let's start with the basics then, you need to learn a few things first before you start coding
I suggest you head over over to the java tutorials and read about classes, to learn the gist of things, here's a link
http://docs.oracle.com/javase/tutorial/java/javaOO/index.html
Once you have a clear understanding we can start tackling the coding part, feel free to ask questions here if you get stuck somewhere

Member Avatar
stultuske
Posting Expert
5,290 posts since Jan 2007
Reputation Points: 935 [?]
Q&As Helped to Solve: 774 [?]
Skill Endorsements: 35 [?]
Featured
 
0
 

the topics classes and methods are not related to two dimensional arrays, so whether or not you don't understand those yet, doesn't mean you shouldn't understand the others yet. remember, we don't know the order in which those topics are taught in your course.
since you've been given that assignment, I must assume you've seen enough to deal with the issue, so go over you course notes again.

Question Answered as of 1 Year Ago by zeroliken, stultuske and NormR1
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: