Instructions

Test if a number grade is an A (greater than or equal to 90). If so, print "Great!"

Hint: Grades may be decimals.

Sample Run

Enter a Number: 98.5

Sample Output

Great!

Instructions Test if a number grade is an A greater than or equal to 90 If so print Great Hint Grades may be decimals Sample

Answer :

Following are the Program to check the input value:

Program Explanation:

  • Defining the header file.
  • Defining a main method.
  • Inside the method a float variable "num" is declared that inputs the value.
  • After input the value a conditional statement is defined num value greater than equal to 90, if its true it will print the message "Great!
    ".

Program:

#include //header file

using namespace std;

int main()//main method

{

float num;//defining a variable

cout<<"Enter a Number:";//print message

cin>>num;//input value

if(num>= 90)//defining if block that checks num value greater than equal to 90

{

cout<<"Great!";//print message

}

return 0;

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/14267584

In python 3:

grade = float(input("Enter a Number: "))

if grade >= 90:

print("Great!")