You need 5 java classes and these include Netflix Class (Parent class of Movie and TVShow class) Movie Class TVShow Class Test/TestDriver Class Database Class

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

You need 5 java classes and these include

  • Netflix Class (Parent class of Movie and TVShow class)
  • Movie Class
  • TVShow Class
  • Test/TestDriver Class
  • Database Class

Please read the questions carefully.

TestDriver is given for the other image.

 

Implement classes to model Netflix titles. These classes must be structured according to
an inheritance hierarchy that is at least two levels deep. Discovering the relationships
between the attributes of the titles that will allow you to organize these titles into an
inheritance hierarchy is an important component of this sprint.
Implement a database/data container class that can hold a collection of these titles.
Implement the necessary accessor and mutator methods in each class.
Implement test drivers to test the above classes.
Draw a UML class diagram to represent your data model. The diagram should include all
the details, including the attributes and methods.
Transcribed Image Text:Implement classes to model Netflix titles. These classes must be structured according to an inheritance hierarchy that is at least two levels deep. Discovering the relationships between the attributes of the titles that will allow you to organize these titles into an inheritance hierarchy is an important component of this sprint. Implement a database/data container class that can hold a collection of these titles. Implement the necessary accessor and mutator methods in each class. Implement test drivers to test the above classes. Draw a UML class diagram to represent your data model. The diagram should include all the details, including the attributes and methods.
The goal of the test driver is to test the accessor, mutator and constructor methods in your
classes. Implement the test driver in the following steps:
1. Prompt the user whether they want to build a TV show or a movie.
2. Collect the attributes of the TV show or a Movie based on the answer to question #1.
The user should be prompted to input one attribute at a time.
3. Instantiate the TV show or Movie based on the attributes collected in Step 2.
4. Print the contents of the TV show/Movie built in step #2.
5.
Prompt the user if they want to change any attribute of the TV show/Movie. For the sake
of simplicity, we will assume that the user can change only one of the attributes of the
TV show or Movie.
6. If the answer to question in #5 is yes, then further ask the user which attribute they
want to change.
7. If the answer to question in #5 is no, then the driver exits.
8. Print the old value stored of the attribute, and ask for the new value.
9. Set the attribute to its new value, and print the TV show or the Movie.
10. Exit
Note, one run of the test driver will build exactly one instance of a TV show or a movie, and will
implement no more than one change of an attribute. No error checking is necessary, assume
that the user always provides correct inputs.
Transcribed Image Text:The goal of the test driver is to test the accessor, mutator and constructor methods in your classes. Implement the test driver in the following steps: 1. Prompt the user whether they want to build a TV show or a movie. 2. Collect the attributes of the TV show or a Movie based on the answer to question #1. The user should be prompted to input one attribute at a time. 3. Instantiate the TV show or Movie based on the attributes collected in Step 2. 4. Print the contents of the TV show/Movie built in step #2. 5. Prompt the user if they want to change any attribute of the TV show/Movie. For the sake of simplicity, we will assume that the user can change only one of the attributes of the TV show or Movie. 6. If the answer to question in #5 is yes, then further ask the user which attribute they want to change. 7. If the answer to question in #5 is no, then the driver exits. 8. Print the old value stored of the attribute, and ask for the new value. 9. Set the attribute to its new value, and print the TV show or the Movie. 10. Exit Note, one run of the test driver will build exactly one instance of a TV show or a movie, and will implement no more than one change of an attribute. No error checking is necessary, assume that the user always provides correct inputs.
Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY