Decode School

Decode School - The School for Problem Solvers

Welcome to my blog. Subscribe and get my latest blog post in your inbox.

Java Program to grade calculation system

Get a mark of a student and find its grade. (Note: 96 to 100 - O Grade 91 to 95 - A Grade 81 to 90-B Grade 71 to 80 - C Grade 61 to 70 - D Grade 50 to 60 - E Grade Below 50 - F Grade)

Sample Input 1:

75

Sample Output 2:

C Grade

Program or Solution

					    
							
					    
					

Program Explanation

chained conditional check is used here to check the mark range.

any one of the grade will be displayed using else if Statement.