Use the following to calculate a GPA (the following is for calculation information only):A = 4.00 grade points per credit hourA- = 3.70 grade points per credit hourB+ = 3.33 grade points per credit hourB = 3.00 grade points per credit hourB- = 2.70 grade points per credit hourC+ = 2.30 grade points per credit hourC = 2.00 grade points per credit hourC- = 1.70 grade points per credit hourD+ = 1.30 grade points per credit hourD = 1.00 grade points per credit hourD- = 0.70 grade points per credit hourgpa calculation = total grade points received (see above)/ number hours attemptedIf you took 3 classes; 3 credit hours each; received an 'A' in each classA = 4.00 points per credit hour means a total of 36 grade points earnedfor 9 attempted hoursgpa = 36/9 = 4.01. Create a header file (*.h) for a class named Student defined as follows:Private variables to hold:first namelast namestreet addresscitystatezipearned grade pointsattempted credit hoursgpaPublic methods:constructor of type Student; set all the private variables to spaceor zero, depending on the data typeconstructor of type Student; set all name values and all address values to values passed in as parameters, do not include earned grade point orattempted credit hours as parametersconstructor of type Student; set ALL private variables to valuespassed in as parametersmethod to display all private variables of the class (i.e., cout)method to calculate the gpa (no parameters)method to calculate the gpa with earned and attempted values passed in as parametersmethod to set the earned value; earned value passed in as parametermethod to set the attempted value; attempted value passed in as parameter2. Create an implementation program (*.cpp file) for class Student and code all the public methods.3. Create a client program (*.cpp) that uses class Student. Create three students using each ofthe three constructors defined in 1. Be aware of what data gets initialized or set to values.4. Calculate the gpa for each of the students.5. Display ALL the data for each of the students after the gpa has been calculated (name, full address,grade points earned, grade points attempted, gpa)6. Be aware that if the first two constructors are used, the earned and attemptedvalues will NOT be set to calculate the gpa. Try using your set methodsto give these a value.You will need to create a project.If you like to include the following line of code: system("paus

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 6E
icon
Related questions
Question

Use the following to calculate a GPA (the following is for calculation information only):A = 4.00 grade points per credit hourA- = 3.70 grade points per credit hourB+ = 3.33 grade points per credit hourB = 3.00 grade points per credit hourB- = 2.70 grade points per credit hourC+ = 2.30 grade points per credit hourC = 2.00 grade points per credit hourC- = 1.70 grade points per credit hourD+ = 1.30 grade points per credit hourD = 1.00 grade points per credit hourD- = 0.70 grade points per credit hourgpa calculation = total grade points received (see above)/ number hours attemptedIf you took 3 classes; 3 credit hours each; received an 'A' in each classA = 4.00 points per credit hour means a total of 36 grade points earnedfor 9 attempted hoursgpa = 36/9 = 4.01. Create a header file (*.h) for a class named Student defined as follows:Private variables to hold:first namelast namestreet addresscitystatezipearned grade pointsattempted credit hoursgpaPublic methods:constructor of type Student; set all the private variables to spaceor zero, depending on the data typeconstructor of type Student; set all name values and all address values to values passed in as parameters, do not include earned grade point orattempted credit hours as parametersconstructor of type Student; set ALL private variables to valuespassed in as parametersmethod to display all private variables of the class (i.e., cout)method to calculate the gpa (no parameters)method to calculate the gpa with earned and attempted values passed in as parametersmethod to set the earned value; earned value passed in as parametermethod to set the attempted value; attempted value passed in as parameter2. Create an implementation program (*.cpp file) for class Student and code all the public methods.3. Create a client program (*.cpp) that uses class Student. Create three students using each ofthe three constructors defined in 1. Be aware of what data gets initialized or set to values.4. Calculate the gpa for each of the students.5. Display ALL the data for each of the students after the gpa has been calculated (name, full address,grade points earned, grade points attempted, gpa)6. Be aware that if the first two constructors are used, the earned and attemptedvalues will NOT be set to calculate the gpa. Try using your set methodsto give these a value.You will need to create a project.If you like to include the following line of code: system("pause")

 
 
 
 
 
 
 
 
 
 
 
 
 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Binary numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage