Question: Solve it using python The aim of the Movie Recommendation System is to provide information / recommendations to interested users for a set of movies.
Solve it using python
The aim of the Movie Recommendation System is to provide informationrecommendations to interested users for a set of movies. You are required to write a Python program that stores, processes, and retrieves information as specified below Specifications:
The program should display the following menu:
Movies Recommendation System
Add new Movie information
Update Movie information
Display information for all Movie
Display specific information
Save specific gen
re in new files
Exit
Adding new movies: This option allows the user to add movie information to the system. The fields for each movie are described in Table Data should be stored in a file called movietxt
The program should accept only valid names and values. Each Movie should have one record per year. The system should display an appropriate error message if the MovieID already has been reviewed for the same Year. For example, the data presented in Table is not valid. This is because each movie should be reviewed once per a year. You should ask the user to enter the number corresponding to the movie Genre, then write it in letters. For instance, if the user entered this means the genre is sport and this is how it should be saved in the file. A movie can have up to Genres, so you should ask the user how many Genres he will enter, if he entered a value larger than then you should print an error message, then ask again. When adding the new movie the MovieID should be automatically assigned. You should check the Movie Name, if the movie has the same name, then you should check the movie year, if the movie name and year are the same you should display an error and not add the movie, get the user back to the main menu. If the movie has the same name but not the same year, then the new id is the old id the date. For instance, movie is created in and the ID is The second review for the same movie is in then the ID should be The first number is just a sequential number. The second number is the date of Review. So to create the movieID you should check if the movie already exist, if it does use the same sequential number ex; else add one to the last existing sequential number and use that ex; check Table Note that when the user Enter the MovieName, they may use upper or lower case letters, your code should be able to recognize if the same name is entered but with different letters check table
Updating Movie information: this option allows the user to update UserRating, NumOfReviews, and Revenue. Once this option is selected, the program should ask for MovieName and Year, then retrieve Movie information based on MovieName and Year. For each field, the program should ask whether it needs to be updated or not. If it needs to be updated, the program asks for the new information. Once all information is entered, the program updates them and displays an appropriate message. The updated movie should be changed in the file as well.
Displaying information about all Movies: this option allows the user to display Movies information in a nicely formatted table. It has the following suboptions select only of the following suboptions
o Sort by MovieID
o Sort by MovieName
o Sort by Genre
o Sort by Revenue
o Sorted by Year
Displaying specific information: this feature allows the user to display Movies information based on some specified criteria. It has the following suboptions: select only of the following suboptions
View the top selling movies in the last years sorted based on Year and UserRating
Print the Total revenue for all movies per Year.
Print the Average revenue of all movies per Year.
Print the Total number of all unique movies per Author.
Print the Average revenue of all unique movies per Author.
View a sorted list of movies by movieName for a given Year In alphabetical order
View a sorted list of movies by movieID for a given year for a given Genre in alphabetical orderask the user for Genre first
Saving movie information for a certain Genre in a new file. The program should ask the user for the Genre, then it should write the retrieved information for that Genre in the new file. For instance, create a new file containing all the fiction movies.
Terminating the program: Remember, your program should be always running until the user closes it with this option. For example, press Q to exit.
Otherwise: the program should display an appropriate error message and inform the user to enter a valid option. After each menu item is terminated the code should return the user to the main menu.
Testing: You should create a text file with movie entries, so that your code can be tested for part You are recommended to create test cases and check that all the parts are working correctly before submission.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
