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.
You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.
Latest completed orders:
# | topic title | discipline | academic level | pages | delivered |
---|---|---|---|---|---|
6
|
Writer's choice
|
Business
|
University
|
2
|
1 hour 32 min
|
7
|
Wise Approach to
|
Philosophy
|
College
|
2
|
2 hours 19 min
|
8
|
1980's and 1990
|
History
|
College
|
3
|
2 hours 20 min
|
9
|
pick the best topic
|
Finance
|
School
|
2
|
2 hours 27 min
|
10
|
finance for leisure
|
Finance
|
University
|
12
|
2 hours 36 min
|