Question: Implementation Specifications: Detailed behavior of about each menu option is mentioned below with screenshots. Register User Request a user to provide a name for registration
Implementation Specifications:
Detailed behavior of about each menu option is mentioned below with screenshots.
Register User
Request a user to provide a name for registration within the application. It is assumed that only the first name is required. The application is required to keep track of all the registered users in a text file named "userdata.txt and should verify whether a user with the entered name already exists. The search for existing users should be caseinsensitive, meaning that variations in capitalization eg Sam, SAM, SaM, sam should all be considered equivalent. If a user with the specified name is found in the database, application should output "User already exists. Please choose a different name." This process should continue until the user inputs a name that is not present in the database. Upon a successful registration, the application should display the message "User is successfully registered" followed by the main menu refer to Fig.
Register User
Display Movies
Rate a Movie
Get Movie Recommendations
Exit
Enter your choice:
Enter username for registration: kay
User already exists. Please choose a different name.
Enter username for registration: sam
User already exists. Please choose a different name.
Enter username for registration: tom
User tom is successfully registered.
Figure Register a user
Display Movies
List of all the available movies in the database, which is stored in a text file name "moviedatabase.txt is displayed in an indexed manner.
Rate a Movie
Request the user to input a username. If the provided username is not found in the user database, the application should display the message "User not found. Please register first." Subsequently, the main menu must be presented again. In the event that the entered username exists, the application should exhibit a list of all movies from the database.
Next, the user is prompted to input a movie index number to provide a rating. It is assumed that the user will enter a number; nonetheless, the program must validate
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
