Question: GC2.4 Write a Java program that uses a multi-way selection if-else-if statement to print the letter grade of a student according to his numeric mark

 GC2.4 Write a Java program that uses a multi-way selection if-else-if

GC2.4 Write a Java program that uses a multi-way selection if-else-if statement to print the letter grade of a student according to his numeric mark and display it as per the table given below Condition Printed output Mark between 90 and 100 Grade A Mark between 80 and 89 Grade B Mark between 70 and 79 Gradec Mark between 60 and 69 Grade D Markless than 60 Fail Mark more than 100 or negative INVALID MARK public class Gradecalculator public static void main(String args[]) { int mark=60

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!