Question:
Can anyone help for this assignment- DVD collection application using C++ and Java?
John
2013-01-07 13:44:16 UTC
DVD Collection Application REQUIREMENTS

A video store wishes to automate their processes related to their collection of DVDs.
The data for each DVD will consist of title, a category, running time, year of release, and price.
These DVDs are stored in datafile.txt.

The video store processes are:
1. add new DVDs to the collection,
2. remove a DVD,
3. edit the information stored for a DVD,
4. list all DVDs by a specified category,
5. retrieve and display the information saved for a DVD given its title,
6. display the collection of DVDs sorted by year,
7. display the collection of DVDs sorted by title.

The client is estimating that there will not own more than 100 DVDs.

TO DO:

A. UML Modeling for OOA and OOD (TEXTUAL ANALYSIS is a MUST!)
(An MVC Model View Controller Design Pattern is REQUIRED!)


B. Using the OOD created in A. OO Implement the application in C++.
(Separating a SampleClass in SampleClass.h and SampleClass.cpp is REQUIRED!)
(FILE I/O is REQUIRED!)


C. Using the OOD created in A. OO Implement the application in JAVA.
(Separating a SampleClass in SampleClassInterface.java and SampleClass.java is
REQUIRED!)
(FILE I/O is REQUIRED!)


datafile.txt
Amadeus,Drama,160 Mins.,1984,14.83
As Good As It Gets,Drama,139 Mins.,1998,11.3
Batman,Action,126 Mins.,1989,10.15
Billy Elliot,Drama,111 Mins.,2001,10.23
Blade Runner,Science Fiction,117 Mins.,1982,11.98
Shadowlands,Drama,133 Mins.,1993,9.89
Shrek,Animation,93 Mins,2001,15.99
Snatch,Action,103 Mins,2001,20.67
The Lord of the Rings,Fantasy,178 Mins,2001,25.87
Three answers:
godfatherofsoul
2013-01-07 14:31:26 UTC
I see a homework assignment, I don't see a question.
?
2016-12-02 10:34:28 UTC
first element: Hardware isn't a language. device Language is only binary which ability a million's and 0's. assembly is just one step up from device Language. that's English words that is extremely actually translated into binary. additionally: seen common and common are just about a similar element. that's familiar for giving programmers undesirable behavior. i do no longer propose it. Smalltalk is meant to be noticeably cool, yet i haven't have been given the possibility to play with it. no person makes use of Pascal anymore. C++ has way too many advantageous properties, that could sound like a solid element, even with the shown fact that it makes the code greater solid to study. Java is solid in that it has a go-platform digital device, however the language is criticized for being to verbose and lacking advantageous properties that different programming languages have. that is unfair via fact Java does have between the main important customary libraries. C# is made via Microsoft and is made to run only on living house windows. there's a Linux port, yet no longer something for OS X that i understand of. It suffers from verbosity like Java, even with the shown fact that that's meant to be a splash better. human beings look to love C, even with the shown fact that this is a low-point language that makes you do your guy or woman reminiscence administration. while you at the instant are not careful, you would be tormented via issues like reminiscence leaks, buffer overflows, and segmentation faults.
2013-01-08 10:59:08 UTC
Creaate a DVD class with title, category, price etc. fields. Write getter and setter methods for these fields. Read data.txt file line by line, parse each line and place info into a DVD object. Add created DVD objects to an ArrayList and use this arraylist to do edit.list and remove DVDs. Here is a detailed blog post for using ArrayList. If you need help for other pieces of your problem, ask new questions.


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