Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please answer using Java Programming Language. System Requirements: In order for such a recommender system to work, It should keep track of all the movies
Please answer using Java Programming Language.
System Requirements: In order for such a recommender system to work, It should keep track of all the movies that each user has watched. Or, more generally speaking, it should keep track of all the items that the user provided feedback for. It should also be able to compute the number of Items that two users have in common. Each user should be referenced using a unique ID, and the same applies to each item. The system should also store the user's name, the item's name and description. For the time being, the system will be used to recommend movies. However, the system design should allow for representing diverse vadeties of items such as movies, books, electronic devices, and any type of commercial product. For movies, the system should keep the movie's genre and director. System Design: 1. The system design will include a class named User to represent a user. That class should include the user's ID, name, number of watched items, and a list containing the IDs of the watched items. The class should include a method for computing the number of similar items between two users To allow for representing diverse items, the system will include an obstract class named Item to represent a generic item. This class will include the item's ID, name and description. To represent movie items, the system will include a class named Movie that inherits from the abstract Item class. It will include the movie's genre and director. 2. 3. UML Diagram for the System Design: User Item -ID: int e name: String - n items: int items: intl +get IDD:int +set ID(i: int):void +get name)-String set nametn: String):void get n items(:int +set n items(i: int):void +get items():intll +add itemfi: int)void +similarityfu:Userj:int # ID: int # name: String # description: String get ID():int +set ID(i: int):void +get name):String +set name(n: String):void +get description():String +set description(s san)void Movie - genre: String director: String +get genrel String +set-genre(n: String):void +get director String set directorin: Stringlkvoid RecApp +main(args Stringlivoid System Requirements: In order for such a recommender system to work, It should keep track of all the movies that each user has watched. Or, more generally speaking, it should keep track of all the items that the user provided feedback for. It should also be able to compute the number of Items that two users have in common. Each user should be referenced using a unique ID, and the same applies to each item. The system should also store the user's name, the item's name and description. For the time being, the system will be used to recommend movies. However, the system design should allow for representing diverse vadeties of items such as movies, books, electronic devices, and any type of commercial product. For movies, the system should keep the movie's genre and director. System Design: 1. The system design will include a class named User to represent a user. That class should include the user's ID, name, number of watched items, and a list containing the IDs of the watched items. The class should include a method for computing the number of similar items between two users To allow for representing diverse items, the system will include an obstract class named Item to represent a generic item. This class will include the item's ID, name and description. To represent movie items, the system will include a class named Movie that inherits from the abstract Item class. It will include the movie's genre and director. 2. 3. UML Diagram for the System Design: User Item -ID: int e name: String - n items: int items: intl +get IDD:int +set ID(i: int):void +get name)-String set nametn: String):void get n items(:int +set n items(i: int):void +get items():intll +add itemfi: int)void +similarityfu:Userj:int # ID: int # name: String # description: String get ID():int +set ID(i: int):void +get name):String +set name(n: String):void +get description():String +set description(s san)void Movie - genre: String director: String +get genrel String +set-genre(n: String):void +get director String set directorin: Stringlkvoid RecApp +main(args Stringlivoid
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started