Answered step by step
Verified Expert Solution
Question
1 Approved Answer
table [ [ Student Name,Student ID Number,Credit Hours Enrolled,Current GPA ] , [ Tanya Opal, 3 1 0 5 , 1 2 , 2
tableStudent Name,Student ID Number,Credit Hours Enrolled,Current GPATanya Opal,Zavier Davison,Therese Kassy,Jaylene Collin,
The best GPA belongs to Zavier Davison
Instructions ASWERS MUST BE IN C:
Write a class named Student that has the following member variables:
a Name. A string that holds the student's name
b Id number. A string that holds the student's ID number.
c creditHours. An int that holds the credit hours enrolled.
d GPA. A floating point that holds the students GPA
In addition, the class should have constructors, destructors, and member functions. Define the header file of the class.
Demonstrate your class in a program that creates an array of student objects data type, asking the user to enter the student data and calculate the best GPA obtained. Implement functions in your code.
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