Write a program that contains two arrays called actors and roles, each of size n. For each

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: