Question: create a java program for below: please do not use high-level java code. i am beginner in java. Tenflix Movie Streaming Note: Strictly use the
create a java program for below:
please do not use high-level java code. i am beginner in java.
Tenflix Movie Streaming Note: Strictly use the variable and method names given here. Changing the names of the identifiers will lead to failure of test cases. 1. Create a class Movies with the following attributes. a. Members Variables:
| Variable | Description | Type |
| name | Movie name | String |
| director | Director's name | String |
| directorSalary | Director's salary | Float |
| productionHouse | Production House's Name | String |
| actors | An array of actors in the movie | String[] |
| salaries | An array of actors' salaries | float[] |
Assume that an actor's salary is saved in the same position as their name. Example:
DiCaprios's salary is in index 0; Michael Caine's salary is in index 1 and so on.
Member variables must not be accessible outside the class.
b. Methods:
| Method Name | calculateBudget |
| Responsibility | Calculates the budget of the movie by summing the salary of all actors and the director's salary |
| Other requirements | Must return a value Must be accessible outside the class |
| Method Name | highestPaidActor |
| Responsibility | Prints the name of the highest paid actor |
| Other requirements | Must return a value Must be accessible outside the class |
| Method Name | printMovieInfo |
| Responsibility | Prints the details of the movies such as: Movie name Director's name Production Company Total Budget Name and Salary of the highest paid actor |
| Other requirements | Must return a value Must be accessible outside the class |
2. Create a tester class named Tenflix. a. In the tester class, create 3 movies by invoking the constructors of the movie class. b. Print the movie information for the 3 movies.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
