#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main() {
//variable declaretions
int num_grade;
char letter_grade;
//read student’s numerical grade
cout<< “Enter student’s numerical grade : ”;
cin>>num_grade;
//calculate student’s letter grade
if (num_grade>=90)
letter_grade= ‘A’;
else if ( num_grade>=80)
letter_grade= ‘B’;
else if ( num_grade>=70)
letter_grade= ‘C’;
else if ( num_grade>=60)
letter_grade= ‘D’;
else
letter_grade= ‘F’;
//display student’s letter grade on the screen
cout<< “Student’s letter grade is ”<<letter_grade;
return 0;
}