Question: Write a menu-driven C++ program to track your favorite movies in C++ string using Linked Lists . Sample Output: Requirements : - Allow for movie

Write a menu-driven C++ program to track your favorite movies in C++ string using Linked Lists.

Sample Output:

Write a menu-driven C++ program to track your favorite movies in C++

Requirements:

- Allow for movie titles up to 30 characters in length. - Do case-independent sorting, but do not convert the case of movie titles when they are entered using cin. - You decide upon your rating system -- can be any data type. - Use a linked list to store the movie information, initially empty, but with three nodes added before the main loop starts. - The output table should have nicely-spaced column headings with sequence numbers. - Use sequence numbers for the update and remove options. - If an out-of-range sequence number is entered for either the remove or update options, either ignore it or output a warning -- your choice. - Output blank lines to separate blocks of text as modeled in the sample output above.

Limitations:

We cannot add nodes, because nodes have to have been already declared in order to be in the linked list.

So do this -- start with 3 or more nodes, initialized to generic movie titles (like movie1). Put them all in the list before starting the menu loop. Once a node is removed, it's gone!

Keeping Track Of The Number Of Nodes:

Did you notice the "Which movie to update [1-3]:" prompt? It's not as easy as it looks! What if a node has been removed? Then it's "[1-2]". You'll need a way to keep track of the number of nodes in your list, and a way to put that number in the update and remove prompts. It's not too hard if you think about it and plan it out.

Do not save the sequence number as an attribute of the movie objects!

---------------------------------------------------------------------

Been trying to work on this code for awhile and my code is a complete mess, having trouble understanding linked lists, any help is highly appreciated.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!