Question: I need help with this python program please. Project 4 Movie Lovers Club The Movie Lovers Club is a club of persons that love to
I need help with this python program please. Project 4 Movie Lovers Club The Movie Lovers Club is a club of persons that love to watch movies and keep track of how many times they have watched the movies they love. The club president, Al Hitchcock, has hired you to create a simple, text-based program that will allow him to enter, update, and retrieve information about the movies that his club members love. The main menu that is provided by the program will look as follows: Welcome to the Movie Lover's Club 1. Display all members 2. Display all movie information for a member 3. Increment the times a specific movie was watched by a member 4. Add a movie for a member 5. Add a new member Q. Quit Please enter a selection: For menu option 1 (Display all users), you should display all club members. Club Members =================== Mary Frank For menu option 2 (Display all movie information for a member), you should prompt for the member name and display all movie information for that member. The member name must exist otherwise you should display an error message. Please enter a selection: 2 Please enter the user's name: Frank Movies for club member: Frank Movie Rating Watched ======================================== Beauty and the Beast G 1 Kung Fu Panda G 5 Cinderella G 1 Foundations of Programming, Data Structures, and Algorithms Please enter a selection: 2 Please enter the user's name: James Sorry, member not found For menu option 3 (Increment the number of times a specific movie was watched by a member), prompt the user for the members name and then for the movie name. Both these items must exist otherwise you should display an error message. Please enter a selection: 3 Please enter the member's name: Mary Please enter the name of the movie: Superman Times watched incremented Please enter a selection: 3 Please enter the member's name: James Sorry, member not found Please enter a selection: 3 Please enter the member's name: Frank Please enter the name of the movie: Star Wars Sorry, movie title not found For menu option 4 (Add a movie for a member), prompt the user for the members name and then for the movie information. The member name must exist and the movie name must not already exist otherwise you should display an error message. Please enter a selection: 4 Please enter the member's name: Frank Enter movie name: Star Wars Enter times watched: 3 Enter rating: PG-13 Movie added Foundations of Programming, Data Structures, and Algorithms Please enter a selection: 4 Please enter the member's name: James Sorry, member not found Please enter a selection: 4 Please enter the member's name: Frank Enter movie name: Cinderella Sorry that movie already exists For menu option 5 (Add a new member), prompt the user for the new members name and add the user information. The member name must not otherwise you should display an error message. Note that no movie information should be added for the new member. Please enter a selection: 5 Enter the new member's name: Kevin Member added 1. Display all members 2. Display all movie information for a member 3. Increment the times a specific movie was watched by a member 4. Add a movie for a member 5. Add a new member Q. Quit Please enter a selection: 1 Club Members =================== Mary Frank Kevin Foundations of Programming, Data Structures, and Algorithms 1. Display all members 2. Display all movie information for a member 3. Increment the times a specific movie was watched by a member 4. Add a movie for a member 5. Add a new member Q. Quit Please enter a selection: 2 Please enter the user's name: Kevin Movies for club member: Kevin Movie Rating Watched ========================================
Step by Step Solution
There are 3 Steps involved in it
To create a Python program for the Movie Lovers Club project we need to develop a textbased interface that fulfills each of the listed functionalities which involve managing club members and the movies they love Heres a stepbystep guide to help you build this program Step 1 Define Data Structures We need to decide on how to store members and their movies Well use dictionaries members A dictionary where keys are member names and values are another dictionary containing movie titles as keys and their details rating and number of times watched as values Step 2 Implement the Main Menu Create a function to display the main menu and prompt the user for a choice python def displaymenu printWelcome to the Movie Lovers Club print1 Display all members print2 Display all movie information for a member print3 Increment the times a specific movie was watched by a member print4 Add a movie for a member print5 Add a new member printQ Quit return inputPlease enter a selection stripupper Step 3 Implement Functions for Each Menu Option Display All Members python def displayallmembersmembers printClub Members print for member in memberskeys printmember Display Movie Information for a Member python def displaymembermoviesmembers membername inputPlease enter the users name strip if membername in members printfMovies for club member membername printMovie Rating Watched print for movie details in membersmembernameitems printfmovie detailsRating detailsWatched else printSorry member not found Increment Times Movie Watched python def incrementmovietimesmembers membername inputPlease enter the members name strip if membername in members movietitle inputPlease enter the name of the movie ... View full answer
Get step-by-step solutions from verified subject matter experts
