Question: Write a program that contains two arrays called actors and roles, each of size n. For each i, actors[i] is the name of an actor
Write a program that contains two arrays called actors and roles, each of size n. For each i, actors[i] is the name of an actor and rolaensd[i] is a HashSet of strings that contains the names of the movies that the actor has appeared in. The program reads the initial information for these arrays from files in a format that you design.
Once the program is running, the user can type in the name of an actor and receive a list of all the movies for that actor. Or the user may type the name of a movie and receive a list of all the actors in that movie.
Step by Step Solution
3.54 Rating (175 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
