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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started