Question: C++ 1. Define a class name Student according to the given UML in student.h Student - points[4) : double creditHour (4) : int name :
1. Define a class name Student according to the given UML in student.h Student - points[4) : double creditHour (4) : int name : string + Student (nama: string) + Get Pointers) Display ( ) CalculateGPA) : double 2. Create another file name student.cpp to store the definitions of all the function prototypes in student.h Definition of each function Student (string nama) to store a string entered by user in data member name GetPointers() to use repetition structure in order to capture points and credit hour enterod by user repeatedly in both data members: points) and creditHour 1 you can declare a local integer variable as a loop counter Display) to display the name stored earlier by constructor Student () to display GPA value returned by a utility function name CalculateGPA) CalculateGPA) a utility function that calculates the current GPA based on values stored in pointe () and creditHour () declare 2 local variables to assist you in summing up the values in both points() and creditHour (1 use a repetition structure with an extra local integer variable as counter the formula for GPA calculation is given below (points[0]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
