Question: To write a program that implements the following C++ concepts 1. Abstraction and Data Encapsulation 2. Instantiate classes 3. Operator Overloading 4. Dynamic Memory Calculating
To write a program that implements the following C++ concepts
1. Abstraction and Data Encapsulation
2. Instantiate classes
3. Operator Overloading
4. Dynamic Memory
Calculating your GPA
Create a class where the program asks your grades. The program will ask for grades until you enter -1.
You should use operator overloading for asking the grades and implements dynamic memory to save
the grades onto memory. After entering -1 the program should print your GPA.
Remember: GPA = sum of grades // where n is the total of grades
n-grades
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
