Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

You are provided with three java source files in D 2 L . One, Actor.java, is a class that represents an actor in a cast

You are provided with three java source files in D2L. One, Actor.java, is a class that represents an actor in a cast and provides methods to access attributes and change their preferred medium and their number of years of acting. The second, Cast.java, represents a cast of actors this is a list of actors in a production, and provides constructors to create a cast given an array of actors or create one by reading items using a Scanner object. In the latter case the input format consists of a line with the number of actors, followed by a line for each actor containing values separated by commas. There will be two lists, one for each cast and an extra actor at the end that will be added to one of the casts (see example below). The Cast class also includes a method to display the actors in a cast. The casts are sorted in ascending value of the actor ID (these are unique for each actor). Finally, TestCast.java is a simple test driver that will test each of the new methods.You are provided with three java source files in D2L. One, Actor.java, is a class that represents an actor in a cast and provides methods to access attributes and change their preferred medium and their number of years of acting. The second, Cast.java, represents a cast of actors this is a list of actors in a production, and provides constructors to create a cast given an array of actors or create one by reading items using a Scanner object. In the latter case the input format consists of a line with the number of actors, followed by a line for each actor containing values separated by commas. There will be two lists, one for each cast and an extra actor at the end that will be added to one of the casts (see example below). The Cast class also includes a method to display the actors in a cast. The casts are sorted in ascending value of the actor ID (these are unique for each actor). Finally, TestCast.java is a simple test driver that will test each of the new methods.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions