[Solved]-Ts Nttps Display List Values Code Given Make Struct Code Work Linked List Data Field Integ Q37253087

Can you make simple code of this using C++ts nttps: Display the list values (code is given), but you have to make a struct for the code to work. The linked list should have a data field which is an integer, a sum field which is an integer and a pnext pointer to the next node Running the code should look like: Enter list numbers separated by space, followed by-1:357-1 Menu options: 0. Display the list number values (provided for you) 1. Display the list number and sum values. 2. Display the sum of all numbers on the list. 3. Set the sum value for each node to be the accumulated sum of numbers on the list so far 4. Exit program Your choice 0 The list number values are: 7 53 Step 1: (1 point) Display list and the sum values For this you have to write the function displayNumberandSumValues(… Running your program should look like this: Enter list numbers separated by space, followed by -1: 357-1 Menu options: 0. Display the list number values (provided for you). 1. Display the list number and sum values. 2. Display the sum of all numbers on the list. 3. Set the sum value for each node to be the ts accumulated sum of numbers on the list so far 4. Exit program Your choice-1 The list number and sum values are: 7:0 5:0 3.0 uus Tie: 7.0 5:0 3:0 Step 2: (1 Point) Display the sum of all numbers in the list For this you have to write the getSumOfAIINumbers…., function Running your program should look like this: Enter list numbers separated by space, followed by -1: 3 57-1 Menu options: 0. Display the list number values (provided for you). 1. Display the list number and sum values. 2. Display the sum of all numbers on the list. 3. Set the sum value for each node to be the accumulated sum of numbers on the list so far. 4. Exit program Your choice 2 The sum of all numbers on the list is: 15 Stan 1 Show transcribed image text ts nttps: Display the list values (code is given), but you have to make a struct for the code to work. The linked list should have a data field which is an integer, a sum field which is an integer and a pnext pointer to the next node Running the code should look like: Enter list numbers separated by space, followed by-1:357-1 Menu options: 0. Display the list number values (provided for you) 1. Display the list number and sum values. 2. Display the sum of all numbers on the list. 3. Set the sum value for each node to be the accumulated sum of numbers on the list so far 4. Exit program Your choice 0 The list number values are: 7 53 Step 1: (1 point) Display list and the sum values For this you have to write the function displayNumberandSumValues(… Running your program should look like this: Enter list numbers separated by space, followed by -1: 357-1 Menu options: 0. Display the list number values (provided for you). 1. Display the list number and sum values. 2. Display the sum of all numbers on the list. 3. Set the sum value for each node to be the ts accumulated sum of numbers on the list so far 4. Exit program Your choice-1 The list number and sum values are: 7:0 5:0 3.0
uus Tie: 7.0 5:0 3:0 Step 2: (1 Point) Display the sum of all numbers in the list For this you have to write the getSumOfAIINumbers…., function Running your program should look like this: Enter list numbers separated by space, followed by -1: 3 57-1 Menu options: 0. Display the list number values (provided for you). 1. Display the list number and sum values. 2. Display the sum of all numbers on the list. 3. Set the sum value for each node to be the accumulated sum of numbers on the list so far. 4. Exit program Your choice 2 The sum of all numbers on the list is: 15 Stan 1
Expert Answer
Answer to ts nttps: Display the list values (code is given), but you have to make a struct for the code to work. The linked list s… . . .
OR

