C++ - Practical One

Classical Linked List

Write a program to store and retrieve students' marks in C++. Implement the storage scheme in memory only using a linked list of records.

Each record must contain the following data:

   Initial (character)
   Surname (string)
   Reg Number (integer)
   Test Marks (array of 10 integers)
   Final Mark (average of test marks)

Implement procedures to add a student, delete a student and list all students. When entering the data, only the test marks must be input - the final mark must be calculated.

Use printf and scanf for input and output. See the C++ documentation for a list of format specifiers.

The system must be implementation-independent i.e. the user interface must be distinct from the working parts of the program.