Ask Python Expert

Project - Movie Lovers Club

The Movie Lover's 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

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 member's 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 member's 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

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

For menu option 5 (Add a new member), prompt the user for the new member's 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

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
========================================

Hints

You must use a Python Dictionary as the data structure that will hold all the movie and user information. You may structure this Dictionary in any way you like. However, you may use the following Dictionary if you wish.

movies = { 'Mary': {'Big':
{
'Watched': 1,
'Rating': 'G'
},
'Superman':
{
'Watched': 3,
'Rating': 'PG'
},
'Forrest Gump':
{
'Watched': 3,
'Rating': 'PG-13'
}
},
'Frank': {'Beauty and the Beast':
{
'Watched': 1,
'Rating': 'G'

},
'Kung Fu Panda':
{
'Watched': 5,
'Rating': 'G'
},
'Cinderella':
{
'Watched': 1,
'Rating': 'G'
}
}
}

The overall logic of the program is straightforward. You may use the following structure as a starting point if you wish:

print("Welcome to the Movie Lover's Club") while True:
#Display the main print("1. Display all members")
# Get the menu selection from the user
# and make sure it is valid
if selection == '1':
# do it
if selection == '2':
# do it
if selection == '3':
# do it
if selection == '4':
# do it
if selection == '5':
# do it
if selection == 'Q':
# do it

print("Thanks for using the Movie Lover's Club application!")

Python, Programming

  • Category:- Python
  • Reference No.:- M92273722
  • Price:- $35

Priced at Now at $35, Verified Solution

Have any Question?


Related Questions in Python

Part i the assignment filesone of the most important

Part I: The Assignment Files One of the most important outcomes of this assignment is that you understand the importance of testing. This assignment will follow an iterative development cycle. That means you will write a ...

Homework -this homework will have both a short written and

Homework - This homework will have, both a short written and coding assignment. The problems that are supposed to be written are clearly marked. 1) (Written) Make heuristics Describe two heuristics for the slide problem ...

Tasksdemonstrate data scraping of a social network of

Tasks Demonstrate data scraping of a social network of choice. Develop technical documentation, including the development of the code & detailing the results. Provide a report on the findings, that includes research into ...

Assignment1 utilising python 3 build the following

Assignment 1. Utilising Python 3 Build the following regression models: - Decision Tree - Gradient Boosted Tree - Linear regression 2. Select a dataset (other than the example dataset given in section 3) and apply the De ...

Python programming assignment -you first need an abstract

Python Programming Assignment - You first need an abstract base class, called, Account which has the following attributes and methods: accountID: This attribute holds the ID assigned the account , if not provided set to ...

Learning outcomes lo3 - research develop and document a

Learning Outcomes LO3 - Research, develop, and document a basic security policy, and analyse, record, and resolve all security incidents LO4 - Identify and assess the threats to, and vulnerabilities of networks Assessmen ...

Question research pythons dictionary data type dictdiscuss

Question : Research Python's dictionary data type (dict). Discuss its interface and usage. Include examples. Discuss practical applications of dictionaries.

Questionwhat is a python development frameworkgive 3

Question What is a python development framework? Give 3 examples python development framework used today. and explain which development framework is used in which industry.

Below zero - ice cream storethe local ice-cream store needs

Below Zero - ice cream store The local ice-cream store needs a new ordering system to improve customer service by streamlining the ordering process. The manager of the store has found that many orders are incorrect and s ...

The second task in this assignment is to create a python

The second task in this assignment is to create a Python program called pancakes.py that will determine the final order of a stack of pancakes after a series of flips.(PYTHON 3) Problem Task In this problem, your input w ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As