Lab 8 assignment:

This lab assignment is to implement the menu list in this C++ program. The Program should read Students Names and their 4 scores from a file, and then store them in a link list.

As your program reads each record from the file, it should create a Node and then pre-pend that Node onto the front of the list.

 

Hint : You should modify the link list so that each node should store a name as a C string and also store an array of 4 test scores (ints)

 

You can use this C++ file for reading names from an input file. The input and the output will be like this:

Scores.txt Input File

John 99 80 77 50

Robert 100 20 50 99

Running the sample read program looks like:

The input file contains:

Name: John Score1:80 Score2:77 Score3:50 Score4:50

Name: Robert Score1:100 Score2:20 Score3:50 Score4:99

Your Task is divided into three parts :

1-      Integrate the reading file code into the main program file, and modify the link list elements. ( 1 Point )

2-      Read Data from input file and save it into link list. (1 point)

3-      Implement the Sum and Reverse Options in the main Program to output the right results. (1 point)

 

 Write Your Name and Your Partner Name. Then Upload both files to Lab11 on Blackboard. GOOD LUCK