// grade.cpp
// display the letter grade corresponding to an exam
// score assuming a noormal scale
# include <iostream>;
using namespace std;
void displayGrade (int score);
int main ()
{
int score;
displayGrade();
cin.get();
return 0 ;
}
// get the data
void displayGrade
cout << " ENTER THE GRADE : " << score << endl;
cin >> score;
{
if ( score >= 90 ) cout << "grade is A" << endl;
else if ( score >=80 ) cout << "grade is B " << endl;
else if ( score >= 70 ) cout << " grade is C " << endl;
else if ( score >= 60 ) cout << " grade is D " << endl;
else cout << "grade is F " << endl;
}
return displayGrade;
I am still confused with the function and variable and the way we declare and organize it/.