Solved: Write a program that uses a structure to store the…

$30.00

Category:

Description

Solved: Write a program that uses a structure to store the…

Write a program that uses a structure to store the following student data items:

First Name

Last Name

Student ID (10 digit integer – store as long int)

Major

GPA (double)

The program should allow the user to enter data for up to twenty students, the data should be stored in an array of the structure type described above.

The program should sort the array elements in ascending order by the student’s last name and first name. Modify the selectionSort function provided in the sample program Demo_selectionSort.c to perform the sort. After sorting the array, display a table that shows the student data in a table with the following column headings in order: Last Name, First Name, Student ID, Major and GPA.


error: Content is protected !!