Question:
I have to generate an object-oriented design for a system that keeps tracks of my CD and DVD collection.?
2007-10-11 07:42:54 UTC
I have to do the following:
• Identify each of the classes, associated data, and operations for the classes.

• Generate the pseudocode for each of the classes.

• Draw a GUI that will create the objects and provide access to each object’s processing methods.
Four answers:
JKP
2007-10-11 08:34:02 UTC
Hopefully this will get you started.



Depending on the terms of the assignment, you may replace "Vector" with "Queue" or "LinkedList" or "Array" or however you've been storing data lately.



Class Collection

{

Vector ListOfCDs

SearchList()

AddToList()

DeleteFromList()

DeleteEntireList()

SortList()

}



Class SingleCD

{

Vector ListOfTracks

AddTrack()

DeleteTrack()

SearchTracks()

DeleteAllTracks()

}



Pseudocode for the Collection::AddToList() function:

Collection::AddToList()

{

//Create a new CD object

//Fill the CD object with track listings using SingleCD::AddTrack()

//Add the CD object to the Collection Vector.

}



Hopefully that will be enough to get you started. Good luck!
lichtenwald
2016-11-08 05:03:42 UTC
merely write down in English what you will possibly do, for basically one determination. something would be a similar different than variety 5. do you want the menu to come lower back lower back up and the consumer chooses?? definite? then you definately might desire to loop till determination is 5? No. Then its basically a one time deal, one time print out? Are you storing the records for each planet in a string? a classification? So whilst they enter the variety, it extremely is going to might desire to learn if determination == ? and if authentic print those issues.
2007-10-11 07:46:51 UTC
Well? Get on with it then!



Weren't you paying attention in class? There is such a thing as study and books, if you're at university you should have been given a book list, I suggest you go and buy one on object-oriented programming and design and read it.
2007-10-11 07:53:43 UTC
Well, if anyone answered this question then you'd still have to know the porgramming in order to figure it out on your own... and if you knew to programming then you wouldn't have asked this question because the project you are attempting is actually really basic. Study up on Java and ask specific questions.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...