Programming, please use the OO approach.
Q1. (20 marks) Polymorphic Movies listing For this exercise, you have a list of movies that you want to list it out in a random order. The purpose of this exercise is to demonstrate how you use the polymorphism technique in displaying the info of selected movie. The selection is done using a random number generator. Each movie has a structure of (string movieName, string actor). This movie class also has two methods that return the movie plot and the key actor (see table below) Your list of movies are arranged in a specific number as show in the following table number name plot actor A big giant eating machine in the ocean 1 Jaws Mr. Quint Independence Aliens attempt to destroy 2 day planet earth Will Smith A super spy does not Matt Damon 3 Bourne Identity remember his purpose The First Order wants to destroy the Resistance to take over the Galaxy Harrisorn Ford Kevin 4 Star Wars 5 Robinhood Rob the rich to pay the poor Costner Your display should look similar to the following depending on you Random # number generator. Since the listing is based on the random number generation, the display would be different but the contents should be very similar. For this assignment, you are allowed to use switch case to select which movie to display based on the random number. You are however, encouraged to try using OO approach in replacing the switch case method (10 points bonus) Q1. (20 marks) Polymorphic Movies listing For this exercise, you have a list of movies that you want to list it out in a random order. The purpose of this exercise is to demonstrate how you use the polymorphism technique in displaying the info of selected movie. The selection is done using a random number generator. Each movie has a structure of (string movieName, string actor). This movie class also has two methods that return the movie plot and the key actor (see table below) Your list of movies are arranged in a specific number as show in the following table number name plot actor A big giant eating machine in the ocean 1 Jaws Mr. Quint Independence Aliens attempt to destroy 2 day planet earth Will Smith A super spy does not Matt Damon 3 Bourne Identity remember his purpose The First Order wants to destroy the Resistance to take over the Galaxy Harrisorn Ford Kevin 4 Star Wars 5 Robinhood Rob the rich to pay the poor Costner Your display should look similar to the following depending on you Random # number generator. Since the listing is based on the random number generation, the display would be different but the contents should be very similar. For this assignment, you are allowed to use switch case to select which movie to display based on the random number. You are however, encouraged to try using OO approach in replacing the switch case method (10 points bonus)