HW0

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
#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;

}
cout << "The average is: " << average << endl; average is not declared instead
cout << "The average is: " << avg << endl;

and the same grade is not declared
Topic archived. No new replies allowed.