I am still just a beginner and i made this average program. It worked out just fine. THen i decided I wanted to make it say like the grade you got such as an A+ or C. Anyway after I add all the grades and divide them by the number of grades I want to store the average as a variable "average" and then use the if/else statements. Any help will be appreciated.
#include <iostream>
using namespace std;
int main()
{
system("TITLE Averager");
system("COLOR 2f");
int gradea;
int gradeb;
int gradec;
int graded;
int gradee;
int gradef;
int average;
cout<<"Please input your 5 test grades for an average\n";
cout<<"Please input your first test grade: ";
cin>>gradea;
cout<<"Please input your second test grade:";
cin>>gradeb;
cout<<"Please input your third test grade: ";
cin>>gradec;
cout<<"Please input your fourth test grade: ";
cin>>graded;
cout<<"Please input your fifth test grade: ";
cin>>gradee;
cout<<"Please input your sixth test grade: ";
cin>>gradef;
cout<<"Your average grade is: "<<(gradea + gradeb + gradec + graded + gradee + gradef)/6<<endl;
if ( > 97.5)
cout<<"You got an A+";
system("pause");
return 0;
}