Question: Upload a jar file with all of the .java source files that contribute to your system: Movie Actor Actress Director Provide at least two constructors

Upload a jar file with all of the .java source files that contribute to your system:

  • Movie
  • Actor
  • Actress
  • Director

Provide at least two constructors per subject class (i.e., IMDb is a test class; not a subject class).

Provide a getter and setter for each field in the UML diagram. Make all fields private.

public class IMDb {

// DO NOT worry about relationships between classes

public static void main(String[] args) {

// TODO: populate each array (read 9.11)

Director[] directors = new Director[3];

Movie[] movies = new Movie[10];

Actor[] actors;

Actress[] actresses = null;

// populate each array with 3 objects (10 movie objects)

// display all movies: show title and year

displayMovies(movies); // write this method!

// TODO: prompt the end user for the name of the actress

String name = "Hepburn"; // replace this hard-coded string w/ user

input

// TODO: search for the named actress (-1 if not found)

int index = searchByName(name, actresses);

// TODO: display search results (actress name or error if not found)

}

}

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!