Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define a struct called Student that stores information about a student, including:ID numberFirst and last nameEmail addressGrade point average ( GPA ) Current grade level

Define a struct called Student that stores information about a student, including:ID numberFirst and last nameEmail addressGrade point average (GPA)Current grade level (freshman, sophomore, etc.)Number of credits earned so farWrite 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.Witout using string

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

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

What is the formula to calculate the mth Fibonacci number?

Answered: 1 week ago