Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 eg 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 hisher ID number.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started