Java Program
Programming Project 2, Movie Reviews
Write a Java program that reads move review information from a text file and reports the overall ratings for each movie as well as identifying the movie with the highest total score. There are four movie reviewers identified by numbers from 1 through 4. They have been asked to review five movies, identified by the letters from “A” through “E”. Reviews are reported by using the letter identifying the movie, the reviewer’s rating, which is a number from 0 to 100, and the reviewer’s identifying number. For example, to report that movie B received a rating of 87 by reviewer 3, there will be a line in the text file that looks like this:
B,87,3
The fields in each record are separated from each other by commas. Lower-case letters “a” through “e” should be interpreted as equivalent to their upper-case values. Some reviewers may not submit ratings for all five movies. Your program will prompt the user for the name of the file containing the movie review data.
The program you write must store the rating values in a two-dimensional array (4 rows by 5 columns). Each row represents a reviewer. Each column represents a movie. Initialize the array to zeroes and read the movie review information from a file. After reading and processing the whole file, display output that shows the following:
· The number of records in the file.
· The average rating given by each reviewer.
· The total rating value for each movie.
· The letter name of the movie with the highest total rating.
Section 7.9 in Chapter 7 of our textbook discusses two-dimensional arrays.
To receive full credit for this programming assignment, you must:
· Use the correct file name. For example, a student named John Jones will name his file, “JJProjectTwo.java”.
· Submit a program that executes correctly. (No syntax or execution errors)
Grading Guideline:
· Correctly name the file submitted. (5 points)
· Include a comment containing the student’s full name in the program. (5 points)
· Prompt the user for the name of the movie review data file. (10 points)
· Read and process all the records from the movie review data file. (15 points)
· Correctly accumulate and display the number of records in the movie review data file. (15 points)
· Correctly accumulate and display the average ratings for each reviewer. (20 points)
· Correctly accumulate and display the rating totals for each movie. (20 points)
· Correctly identify the movie with the highest total rating. (10 points)