-main.cpp -studentType.h -studentTypeImp.cpp directions- Chapter 9 defined the struct studentType to implement the basic properties of a student. Define the class studentType with the same components as the struct studentType, and add member functions to manipulate the data members. (Note that the data members of the class studentType must be private.) Write a program to illustrate how to use the class studentType.
i am using the system mindtap.
i have 3 file names to fill in.
-main.cpp
-studentType.h
-studentTypeImp.cpp
directions- Chapter 9 defined the struct studentType to implement the basic properties of a student. Define the class studentType with the same components as the struct studentType, and add member functions to manipulate the data members. (Note that the data members of the class studentType must be private.)
Write a program to illustrate how to use the class studentType.
Struct studentType:
struct studentType { string firstName; string lastName; char courseGrade; int testScore; int programmingScore; double GPA; };
An example of the program is shown below:
Name: Sara Spilner Grade: A Test score: 89
thank you so much!
![## Programming Exercise 10-4
### Instructions
Define a **class** named `counterType` to implement a counter. The class must include a private data member `counter` of type `int`. Implement a constructor that accepts an `int` parameter and initializes the `counter` data member. Provide functions to:
- Manipulate and retrieve the value of the counter
- Increment and decrement the counter
In the **main.cpp** file, the following code structure is present:
```cpp
// Main program
#include <iostream>
#include "counterType.h"
using namespace std;
int main()
{
counterType counter1;
counterType counter2(5);
counter1.print();
cout << endl;
return 0;
}
```
### Explanation
This program is part of a series of exercises designed to teach class and object implementation. The focus is on writing classes in C++ that manage simple data operations efficiently. The `counterType` class is an example of encapsulating data and related operations inside a class structure, allowing for more organized and modular coding practices.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2a1a7db6-8f8f-43d1-b008-03a5d653c710%2F5877ee55-1085-4f67-93f5-7154f4f577c2%2Fsaknjjq_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)