Create a List class with the following interface (at a minimum):
List::addItem //add an item to the list
List::getLargestValue //find the largest value stored in the list
In addition, create a Node class that stores an integer.
The list will contain nodes that encapsulate an integer value. Your driver program should accept ten integers from the console, store them in the list, then display the largest value in the list.
You'll end up with at least two objects: the list object, and a node object.
The list object shouldn’t know what is contained in its constituent nodes. Also, when adding a node to the list, the method should add new nodes to the bottom of the list, and start at the top of the list, iterating through it to find the bottom. In other words, don’t just keep a pointer to the bottom node…find it each time, starting from the top. The same goes for finding the largest value; start at the top of the list and work your way to the bottom. In main you will create a new node, set its value, and then pass that node to the list, which will will add it.
When looking for the largest node in the list, the list object should ask each node object in the list what its value is, and keep track of the largest seen. It should then return a pointer to that node…print the value out from main.
You should have at at least five files in your project: Header files for List and Node, implementation files for List and Node, and a file containing main.
Your deliverable is the source code and a sample run.
I need help with the question how to accept 10 integers into the console? Also what Am i missing? This is what I have so far!