Question: Using C++ The program will allow the user to keep track of a DVD collection. The DVD in the collection will be represented as a

Using C++

The program will allow the user to keep track of a DVD collection. The DVD in the collection will be represented as a class, so you will have one class that is a single DVD.

The DVD class will have data members for the title of the movie, the length of the movie, and the year the movie was released. The class will have a vector which is used to store the name of the actors and actresses in the movie. Another vector will be used to maintain the character names that the actor/actress played in the movie. These two vectors must work in parallel, meaning the first actor/actress in the list must correspond to the first character in the other vector.

The program will maintain a list DVDs. This list will be a vector of that class type (DVD). The program must provide methods (functions) to add a DVD, remove a DVD and update a DVD. There should also be a function that displays the entire list of DVDs. The output must be a table format, with heading:

Movie Title: THE AVENGERS

Length of Movie 2HR 23MIN

Year Released: 2012

Characters: IRON MAN, CAPTAIN AMERICA, HULK, THOR

Movie Title: AVENGERS AGE OF ULTRON

Length of Movie 2HR 21MIN

Year Released: 2015

Characters: HAWKEYE, WAR MACHINE, QUICKSILVER, FALCON

Movie Title: CAPTAIN AMERICA THE FIRST AVENGER

Length of Movie 2HR 4MIN

Year Released: 2011

Characters: CAPTAIN AMERICA, RED SKULL,

Note: the movie title, length of movie and year released should only appear once while the actors/actresses and characters will have several lines. So the other columns must be displayed with blanks.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!