Question: please use structs, arrays, link lists. the language is C++ please follow the restructions on the spec sheet!!! input file is full of numbers like:

please use structs, arrays, link lists.
the language is C++
please follow the restructions on the spec sheet!!!
input file is full of numbers like:
6 2 78 56 8 9 10
7 2 10 78 8 100
and etc....
please use structs, arrays, link lists. the language is C++ please follow

I have a list of numbers that I need to know two things, what numbers I have in the list and how many of each number do I have in the list. So you are to read in each number and add the number to an ordered link list. Now, if you are adding a number to the list and you find that number, then you will just count it. If you do not find the number in the link list, then you will add a new node to the link list with the new number and set the count to one. The structure/class will have three fields; the number, a counter, the counter is used to keep count of how many of this number exist and of course a link field. 1. Print out the values and their counts say 8 per line. Example 5 -22 8-15 13-5 22 - 3 25 - 18 where the 5 is the number and 22 is its count (ie there were 22 number 5's in the list). Label output please. 2. Print out the number of nodes in the link list and the average for the values. (5-22 is 5 values to count in sum and average.) 3. Now, go through the link list and delete any node with a value that is a multiple of 5. 4. Print out the number of nodes in the new link list. 5. Travers the new link list and print out the number of values in the list and the average. Input file is LinkNbrs.dat

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!