Question: Define a struct called Student that stores information about a student, including: ID number First and last name Email address Grade point average ( GPA

Define a struct called Student that stores information about a student, including:
ID number
First and last name
Email address
Grade point average (GPA)
Current grade level (freshman, sophomore, etc.)
Number of credits earned so far
Write a function that asks the user for student information and then allocates memory for a new Student
object, fills in its attributes, and returns a pointer to that object.
Create a function that takes a Student pointer and neatly prints out all the fields, so we can display a
student's info.
Write a function that allows the user to enter any number of students, creates a dynamic array to store
them, initializes each one by asking the user for data, and returns a pointer to the array.
Make a function to neatly print out the details of every student in an array, given the array pointer and
size.
Implement a flexible sorting function that can sort an array of Students in different ways (e.g. by ID, name,
GPA) based on a function pointer parameter that tells it which field to sort on.
Write a function that allows the user to insert a new Student into the array.
Write a function that allows the user to delete an existing student from the array using his/her ID number.
 Define a struct called Student that stores information about a student,

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!