Question: C Program: *Restrictions*: -No global variables -No break statements unless in switch cases -Int main function above called functions -Libraries include : stdio.h string.h stdlib.h

C Program:

*Restrictions*:

-No global variables

-No break statements unless in switch cases

-Int main function above called functions

-Libraries include :

stdio.h string.h stdlib.h

Write a modular program that creates a linked list of student nodes that is in ascending order by last names and displays(in an organized manner) the data entered by traversing the list. No limit on number of students Given structure for the nodes:

typedef struct stdntNode

{

char firstName[20];

char lastName[20];

unsigned int stdntID;

char major[30];

double gpa;

struct studNode *nextStuPtr;

} stdntNode_t;

How it looks:

Enter the first student's first name or -1 to end input:

(** After first student has been entered, program asks for"next student's name")

Enter the student's last name:

Enter the student's ID number:

Enter the student's major:

Enter the student's gpa:

STUDENT STUDENT-ID MAJOR GPA

( *Names in ascending order by last name. If last names are same, then compare first names )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!