Movie Listing

The intent of this program is to manage a set of favorite movies. Each movie will have data associated with it:

Title
Year produced
Rating (this can be a simple 1-5 integer) that represents how much the user likes the movie.
Anything else youd like to add to make yours unique (can result in extra credit)
You must allow the customer to do the following actions on the movie list:

List all movies
Add Movie
Delete Movie
Edit Movie
Exit program
The menu prompted to the user should look something like the following. You can also allow the user to input only the first letter of each word, but you need to make it clear whats happening.

COMMAND MENU

(L)ist List all movies
(A)dd Add a movie to the list
(E)dit Edit a movie on the list
(D)elete Delete a movie on the list
(Q)uit Exit the program

I can now as the user enter either the word, or the letter (capitalized and in parentheses). If I enter anything else besided the letter or words on the menu the input is invalid and I have to try again.

For example, my implementation looks like this when I enter l for list movies:

COMMAND MENU

(L)ist – List all movies
(A)dd –  Add a movie
(E)dit – Edit a movie
(D)el –  Delete a movie
(Q)uit – Exit program

Command: l

1.Monty Python and the Holy Grail (1975) – Rating: 5
2. On the Waterfront (1954) – Rating: 2
3. Cat on a Hot Tin Roof (1958) – Rating: 4
Once I enter the main command, I will be prompted through the process of adding/editing/deleting/listing. For example, if I want to edit a movie, Ill be prompted for the number of the movie I want to edit, and then prompted for all the values to enter (similar to adding a move).

For example, here Im editing the second movie:

Command: e
Please input a number between 1 and 3: 2
Movie number 2 named ‘On the Waterfront’ will be changed. Are you sure (y/n)? y
    New Name: The Matrix
    New Year: 1999
    New Rating (number between 1 & 5): 5
Movie number 2 – named ‘The Matrix’ was changed.

Deleting a movie:

Command: d
Please input a number between 1 and 3: 3
Movie number 3 named ‘Cat on a Hot Tin Roof’ will be deleted. Are you sure (y/n)? y
Cat on a Hot Tin Roof was deleted.

Adding a movie:

Command: a
    Name: Star Wars
    Year: 1977
    Rating (number between 1 & 5): 4
Movie number 3 – named ‘Star Wars’ was added.

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp