Question: In C, create a modular program that creates a linked list of student nodes that is in ascending order by last names (if last names
In C, create a modular program that creates a linked list of student nodes that is in ascending order by last names (if last names are same, order by first names) and displays(in an organized manner) the data entered by traversing the list.
The user can enter data for an unspecified number of students.
Here's the structure for the nodes:
typedef struct studNode
{
char firstName[20];
char lastName[20];
unsigned int studID;
char major[30];
double gpa;
struct studNode *nextStuPtr;
} studNode_t;
Heres how it looks:
Enter the first student's first name or -1 to end input:
Enter the student's last name:
Enter the student's ID number:
Enter the student's major:
Enter the student's gpa:
NAME OF STUDENT STUDENT ID MAJOR GPA
( *Names in ascending order by last name. If last names are same, then compar first names )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
