Sep 5, 2016 at 11:36pm UTC
Implement a program in C++ that does the follolwing
1.Read as input average course score
2.Proves it to find the letter grade
3. Display the better grade
#include <iostream>
#include <fstream>
<< cout : Average course score
Sep 6, 2016 at 1:29am UTC
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int x1=40, x2=30, x3=55, x4=99;
float avg;
avg = (x1+x2+x3+x4) / 4.0;
cout << "The average is: " << average << endl;
cout << "The letter grade is: " << grade << endl;
system ("PAUSE");
return 0;
}
Sep 6, 2016 at 10:29am UTC
cout << "The average is: " << average << endl; average is not declared instead
cout << "The average is: " << avg << endl;
and the same grade is not declared