Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions