C++ Use the following to calculate a GPA (the following is for calculation information only): A = 4.00 grade points per credit hour A- = 3.70 grade points per credit hour B+ = 3.33 grade points per credit hour B = 3.00 grade points per credit hour B- = 2.70 grade points per credit hour C+ = 2.30 grade points per credit hour C = 2.00 grade points per credit hour C- = 1.70 grade points per credit hour D+ = 1.30 grade points per credit hour D = 1.00 grade points per credit hour D- = 0.70 grade points per credit hour gpa calculation = total grade points received (see above)/ number hours attempted If you took 3 classes; 3 credit hours each; received an 'A' in each class A = 4.00 points per credit hour means a total of 36 grade points earned for 9 attempted hours gpa = 36/9 = 4.0 1. Create a header file (*.h) for a class named Student defined as follows: Private variables to hold: first name last name street address city state zip earned grade points attempted credit hours gpa Public methods: constructor of type Student; set all the private variables to space or zero, depending on the data type constructor of type Student; set all name values and all address values to values passed in as parameters, do not include earned grade point or attempted credit hours as parameters constructor of type Student; set ALL private variables to values passed in as parameters method 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 parameters method to set the earned value; earned value passed in as parameter method to set the attempted value; attempted value passed in as parameter 2. 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 of the 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 attempted values will NOT be set to calculate the gpa. Try using your set methods to give these a value. You will need to create a project. include .ccp and .dev pro

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

C++

Use the following to calculate a GPA (the following is for calculation information only):

A = 4.00 grade points per credit hour
A- = 3.70 grade points per credit hour
B+ = 3.33 grade points per credit hour
B = 3.00 grade points per credit hour
B- = 2.70 grade points per credit hour
C+ = 2.30 grade points per credit hour
C = 2.00 grade points per credit hour
C- = 1.70 grade points per credit hour
D+ = 1.30 grade points per credit hour
D = 1.00 grade points per credit hour
D- = 0.70 grade points per credit hour

gpa calculation = total grade points received (see above)/ number hours attempted
If you took 3 classes; 3 credit hours each; received an 'A' in each class
A = 4.00 points per credit hour means a total of 36 grade points earned
for 9 attempted hours
gpa = 36/9 = 4.0


1. Create a header file (*.h) for a class named Student defined as follows:

Private variables to hold:
first name
last name
street address
city
state
zip
earned grade points
attempted credit hours
gpa

Public methods:

constructor of type Student; set all the private variables to space
or zero, depending on the data type

constructor of type Student; set all name values and all address values
to values passed in as parameters, do not include earned grade point or
attempted credit hours as parameters

constructor of type Student; set ALL private variables to values
passed in as parameters

method 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 parameters

method to set the earned value; earned value passed in as parameter

method to set the attempted value; attempted value passed in as parameter

2. 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 of
the 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 attempted
values will NOT be set to calculate the gpa. Try using your set methods
to give these a value.

You will need to create a project.
include .ccp and .dev project file

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Datatypes
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education