# Student GPA Calculator in C++

Student Grading Record System in c++.Hi,We are Student you.our School university make a System for us to manage our date.today we make this program for learning.Student Grading Record System in C++ :five variables that is being store in our structure name student records. This variables are follows
string first_name[5]; string last_name[5]; int age[5]; string major_course[5]; and float gpa_grade[5];.

## GPA Calculator in C++

#### Source code

```#include <iostream>
#include <iomanip>
#include <stdlib.h>
using namespace std;
struct student_records{
string first_name[5];
string last_name[5];
int age[5];
string major_course[5];
float gpa_grade[5];
};

main() {

student_records student;

cout << "\t =========================================\n";
cout << "\t ===== Student Grading Record System =====\n";
cout << "\t =========================================\n";
for (int x=0; x<5; x+=1) {
cin.ignore();
cout << "\n\n";
cout << "Enter student no." <<x+1 << " First name :";
getline(cin,student.first_name[x]);
cout << "Enter student no." <<x+1 << " Last name :";
getline(cin,student.last_name[x]);
cout << "Enter student no." <<x+1 << " Age : ";
cin >> student.age[x];
cin.ignore();
cout << "Enter student no." <<x+1 << " Majoring : ";
getline(cin,student.major_course[x]);
cout << "Enter student no." <<x+1 << " GPA : ";
cin >> student.gpa_grade[x];
}

cout << "\n\n";
for (int y=0; y<5; y+=1) {
cout << "\n\n";
cout << "Record No. " << y+1;
cout << "\n First Name : " << student.first_name[y];
cout << "\n Last Name : " << student.last_name[y];
cout << "\n Age : " << student.age[y];
cout << "\n Majoring : " << student.major_course[y];
setprecision(2);
cout << "\n GPA : " << student.gpa_grade[y];
cout << "\n\n";
}
system("pause");
return 0;
}```

Output of program

Categories C++