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.
- Write an if-else if statement to:
- assign A togradeif score is greater than or equal to 90;
- assign B togradeif score is greater than or equal to 80 but less than 90; or
- 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
