Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Implementing Ai And Machine Learning For Business Optimization

Authors: Robert K Wiley

1st Edition

B0CPQJW72N, 979-8870675855

More Books

Students also viewed these Databases questions