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)
}
}
Movie Actress -title: String - String Fname - genre: String - String Lname + year: String - int Age - Salary: int - director: String + getboxOffice(): int + setboxOffice(): int TEST UML + getTitle(): String + setTitle(): String + getGenre(): String + setGenre(): String + getSalary(): String + Set Salary: String + getFrame(): String + setLname: String + getLname: String + setFname(): String + getAge(): int + get Year(): int + set Year(): int + getDirector(): String + setDirector(): String + setAge(): int Actor - Name: String - IName: String - salary: int - age: int Director - Fname: String - Lname: String - Salary: int + getFname(): String + setFrame(): String + getLname(): String + setlname(): String + getSalary(): int + Set Salary(): int + getFname(): String + setFname(): String + setLname: String + get name: String + getSalary): int + setSalary(): int + getAge(): int + setAge(): int
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