Question: Consider two variables, score and grade . The variable score contains a numeric value. Write an if-else if statement to: assign A to grade if

Consider two variables,scoreandgrade. The variable score contains a numeric value.

    1. Write an if-else if statement to:
      1. assign A togradeif score is greater than or equal to 90;
      2. assign B togradeif score is greater than or equal to 80 but less than 90; or
      3. assign C togradeif score is greater than or equal to 70 but less than 80.

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 Programming Questions!