You have been asked to write a program that will allow your client Tigger Movie Rentals to keep  track of their inventory. For the purposes of this program, we will assume they only have one copy of each movie in the  inventory. Your program should: Continue until the user wishes to exit the program (use a loop) Give the user 4 options from a menu: list – list all movies add – add a movie del – delete a move exit – exit the program Example (does not have to match this exactly):

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

You have been asked to write a program that will allow your client Tigger Movie Rentals to keep 
track of their inventory.
For the purposes of this program, we will assume they only have one copy of each movie in the 
inventory.
Your program should:
Continue until the user wishes to exit the program (use a loop)
Give the user 4 options from a menu:
list – list all movies
add – add a movie
del – delete a move
exit – exit the program
Example (does not have to match this exactly):

Command Menu

list - List all movies

add - Add a movie

del - Delete a movie

exit - Exit program

If the user enters an option other than those 4, provide an error message and ask the user to 
re-enter the selection
The list of movies in inventory will be stored in a file named movies.txt (a starting version of 
the file is provided). You can assume the file is stored in the same directory as the .py file.
 When the list option is selected, a list of the current inventory will be displayed to the 
screen
Example (does not have to match this exactly):

                 Command: list

              1. Monty Python and the Holy Grail (1975)

               2. On the Waterfront (1954)

               3. Cat on a Hot Tin Roof (1958)

               4. Gone with the Wind (1939)

When the delete option is selected, the user will be asked to select which movie should be 
deleted. After the movie is deleted, a confirmation message should be displayed saying 
which movie was deleted
Example (does not have to match this exactly):

                    Gone with the Wind was deleted

When the add option is selected, the user should be prompted to enter the name of the 
movie and the year it was released. After the movie is added, a confirmation message should 
be displayed saying which movie was added.

When the exit option is selected, exit the loop and display:
A total of how many movies are now in the inventory.
How many movies were added during this session?
How many movies were deleted during this session?
 You must use a separate function for the following items:
List the movies
Add the movies
Delete the movies
You can use additional functions in your program if you choose.

 Be sure to include appropriate documentation at the start of the program and within the 
program

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Graphical User Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education