Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++. input file is attached please follow all restrictions on the spec sheet. use structs, linked lists, and pointers only. PLEASE PAY ATTENTION TO DELETING

C++.
input file is attached
please follow all restrictions on the spec sheet.
use structs, linked lists, and pointers only.
PLEASE PAY ATTENTION TO DELETING MULTIPLES OF 5.
thank you. image text in transcribed
image text in transcribed
LinkNbrs (3).dat. Notepad File Edit Format View Help 2 28 15 21 10 5 39 39 3 25 26 26 2 28 2 12 36 23 28 37 32 5 23 34 13 23 22 37 39 16 8 7 12 19 30 33 28 20 36 15 24 12 3 14 34 25 22 32 14 29 28 5 23 38 38 20 4 22 10 19 37 36 31 3 9 27 1 23 25 9 7 6 11 10 11 31 7 22 34 29 30 24 5 35 37 1 7 17 12 29 25 40 27 4 18 19 39 3 10 22 34 36 40 19 25 11 18 27 34 27 22 26 5 33 31 30 18 14 18 33 27 11 2 37 36 8 16 15 32 13 31 31 22 5 7 31 28 32 8 18 18 8 34 24 26 30 10 39 22 29 23 27 27 31 14 9 21 32 3 16 11 40 25 18 29 4 36 2 3 31 12 37 15 21 37 22 29 40 29 5 2 15 14 40 19 19 21 29 8 28 9 14 9 4 8 22 31 18 14 35 30 17 16 12 1 10 40 37 39 24 25 9 5 10 30 23 36 6 14 24 4 28 35 24 9 1 19 19 21 37 39 2 30 39 10 38 33 23 19 13 39 20 31 18 39 32 16 9 37 32 3 35 33 16 9 7 3 7 36 34 30 23 5 17 2 39 3 12 22 20 38 37 13 30 36 33 1 31 4 30 22 9 2 30 16 24 3 26 23 6 9 27 18 38 33 13 10 35 2 30 17 10 9 13 26 36 35 30 2 33 26 21 39 34 20 24 40 37 8 10 30 38 27 30 34 36 18 17 7 26 9 3 16 15 35 22 37 32 27 24 34 36 26 14 33 9 33 26 34 37 2 39 7 23 2 25 37 23 10 2 16 11 14 27 5 20 13 40 14 25 35 31 26 10 27 34 35 23 9 19 28 26 39 32 3 26 38 15 35 25 15 35 13 40 34 31 8 18 39 18 14 31 4 29 33 26 23 1 14 28 3 20 8 26 24 5 24 13 22 22 4 33 26 34 6 32 13 23 23 7 25 21 28 1 14 15 31 11 36 34 32 1 17 28 6 31 21 15 16 25 20 6 17 15 19 23 12 27 39 34 12 5 19 25 40 33 1 8 21 7 11 38 11 36 17 28 4 39 5 30 3 7 6 8 18 35 26 28 30 9 24 1 23 3 4 37 18 22 36 6 25 21 3 37 31 7 12 12 12 28 34 1 31 5 29 4 21 12 23 30 21 34 39 19 6 8 38 1 19 40 24 1 38 5 38 29 34 8 2 11 21 29 34 25 6 21 32 25 36 37 33 31 24 6 37 17 27 38 7 38 18 32 30 2 17 23 18 33 38 17 26 2 24 10 30 40 13 17 16 14 3 25 15 15 13 18 10 13 4 8 4 32 36 28 9 36 19 24 23 35 32 22 16 20 26 22 31 27 15 6 24 11 39 40 22 34 15 38 15 37 34 17 26 3 29 2 21 14 2 16 16 23 23 12 38 25 39 33 4 17 34 1 34 36 33 19 11 18 13 33 16 10 32 1 9 6 11 18 30 31 26 34 35 12 21 5 19 16 40 33 6 25 22 24 30 16 9 13 38 30 37 2 28 28 22 10 1 14 15 2 38 16 4 14 33 25 2 33 40 31 29 28 5 36 27 19 11 88 5 24 22 24 27 4 11 12 10 1 5 23 20 34 32 25 19 33 31 6 16 20 24 23 19 8 25 9 12 25 34 36 26 33 27 39 10 23 40 26 10 25 26 21 6 29 39 31 2 4 13 33 33 8 11 4 22 24 24 8 1 10 16 6 29 24 28 9 24 38 10 24 10 2 29 23 9 21 22 39 35 9 27 11 30 4 31 21 29 28 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

15. List various kinds of follow-up letters.

Answered: 1 week ago

Question

Discuss the key people management challenges that Dorian faced.

Answered: 1 week ago

Question

How fast should bidder managers move into the target?

Answered: 1 week ago