Question: When talking with students, I noticed many have seen different movies with different opinions of various movies. In this project, w preference of CS students
When talking with students, I noticed many have seen different movies with different opinions of various movies. In this project, w preference of CS students to movies. The data collected from the survey can be stored in heaps and PriorityQueue for new students to query about the most popular, the most-viewed, highest rating, and the latest movie. to take survey o Each student is to collect a movie rating information from a survey to students in our school of computer science. The survey results are stored in a common text file using the format of www.imdb.com rating system. This step gives students opportunities to interact and discuss the movie topic that is popular to general public. The survey collection is due on April 15, about one month before the due day of the full project. Each student needs to collect the survey from at least 10 students and include at least 0 movies. Students will practice using a heap to facilitate the selection of highest rating and/or most popular and/or latest movies. First students need to know how to create a heap and use it to implement a priority queue, and then use priority queue with Comparators to select the highest one with various Comparators. The students get to learn about the difference between selecting the maximum and sorting the entire list, as well using different criteria for selection. 1) Collect movie ratings from the students of SCS and add the rating info to the common rating file in the shared Dropbox directory. The format is as follows. Each line is an entry of one movie. Each movie has 5 fields: rating percentage, number of students saw the movie, average rating, movie name, and movie release year. An example is given later. [1 point] Create a movie class with the 5 field information of rating. [1 point] 3) Create comparators to compare 4 fields except movie names. [1 point] 4) Create a heap using various comparators. [1 point] 5) Create PriorityQueue that use the heap to answer users' query of highest percentage, most-viewed, highest rating, and the latest movie. [1 point] 6) Demo the interactive program to the class. When talking with students, I noticed many have seen different movies with different opinions of various movies. In this project, w preference of CS students to movies. The data collected from the survey can be stored in heaps and PriorityQueue for new students to query about the most popular, the most-viewed, highest rating, and the latest movie. to take survey o Each student is to collect a movie rating information from a survey to students in our school of computer science. The survey results are stored in a common text file using the format of www.imdb.com rating system. This step gives students opportunities to interact and discuss the movie topic that is popular to general public. The survey collection is due on April 15, about one month before the due day of the full project. Each student needs to collect the survey from at least 10 students and include at least 0 movies. Students will practice using a heap to facilitate the selection of highest rating and/or most popular and/or latest movies. First students need to know how to create a heap and use it to implement a priority queue, and then use priority queue with Comparators to select the highest one with various Comparators. The students get to learn about the difference between selecting the maximum and sorting the entire list, as well using different criteria for selection. 1) Collect movie ratings from the students of SCS and add the rating info to the common rating file in the shared Dropbox directory. The format is as follows. Each line is an entry of one movie. Each movie has 5 fields: rating percentage, number of students saw the movie, average rating, movie name, and movie release year. An example is given later. [1 point] Create a movie class with the 5 field information of rating. [1 point] 3) Create comparators to compare 4 fields except movie names. [1 point] 4) Create a heap using various comparators. [1 point] 5) Create PriorityQueue that use the heap to answer users' query of highest percentage, most-viewed, highest rating, and the latest movie. [1 point] 6) Demo the interactive program to the class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
