Question: Design Problem: Student Record Management using Linked Lists OBJECTIVE: The main objective of this assignment is to create a C program that manages student records
Design Problem: Student Record Management using Linked Lists
OBJECTIVE: The main objective of this assignment is to create a C program that manages student
records database by using linked lists of student structures; pointers for the link list and to access the
records; and functions to search for students, calculate class average and print the desired information.
Your program should be able to do the following:
Find a student record by ID search the full database
Print all student records You should have at least student records in your database
Calculate and display the class average final grade.
Display the number of students in the list.
Requirements Make sure to use structures, pointers, functions that use pointers to traverse the
students records that form the linked list, and give the user the choice to search a particular record by
matching the ID number or print out the full list of records. Additionally, you must give your user the
choice to calculate and display the class average and to display the number of students in the list.
Below is a description of what is expected:
a Student Record Structure Create a Student structure with the following fields:
First Name: A string to store the first name of the student.
Last Name: A string to store the last name of the student.
ID: An integer to store the student ID
Final Grade: A float to store the final grade of the student.
A pointer to the next Student structure.
b Functions your program must have:
A function to search for a student by ID number User provides an ID number and if
found, prints all the details on the student's record if not found, it prints a failed search
message After printing the information, the program should prompt the user by asking if
they want to know the class average and the number of students in the list.
A function to calculate and print the class average
A function to determine and print the number of students in the list count and print how
many student records are in the database by traversing the linked list
A function to print the full database prompt the user by asking if they prefer to see the
full list of records. This function will print all the student records in the linked list displaying
all the information for each, it will also print the class average and the number of students in
the list.
Main function Create a menu to prompt the user to select within the following choices:
Find a student by ID
Print all student records
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
