Question: / / Program Grade prints appropriate message based on a / / grade read from the keyboard. #include using namespace std; int main ( )

// Program Grade prints appropriate message based on a
// grade read from the keyboard.
#include
using namespace std;
int main()
{
int grade;
cout << "Enter an integer grade between 50 and 100."
<<" Press return. "<< endl;
cin >> grade;
if (/* FILL IN Logical Expression */)
cout << "congratulations!<< endl;
return 0;
}
Exercise 1.(5 pts)
Fill in the logical expression beside the if so that Congratulations! is written if the numeric grade is
greater than or equal to 80. Run the program three times entering the following values for grade: 60,
80 and 95. Show your expression and the results for the three grades in the report.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!