For this Question: Input a student's marks in five subjects. Print out the grade, the student would receive based on the percentage calculated for 5 subjects. Grades are calculated as follows :
Grade A' will be printed if the percentage is greater than or equal to 80.
Print Grade 'B' if the percentage is between 80 and 60. (both inclusive)
Print Grade 'C' if the percentage is between 60 and 40(both inclusive) and Grade 'D' otherwise.

<b>Example</b>
Newton has the following marks: 70, 80, 85, 95, 100
So its percentage will be ((70+80+85+95+100)/500)*100 = 86%
Then the grade is AThe input contains 5 integers separated by spaces.

<b>Constraints:</b>
1 &le; marks &le; 100You need to print the grade obtained by a student.Sample Input:
75 70 80 90 100

Sample Output:
A

<b>Explanation</b>
((75+70+80+90+100)/500)*100=83%
A grade., I have written this Solution Code: import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import java.io.*;
public class Main {  
    static final int MOD = 1000000007;    
    public static void main(String args[]) throws IOException {
        BufferedReader br 
                = new BufferedReader(new InputStreamReader(System.in));
               String str[] = br.readLine().trim().split(" ");
               int a = Integer.parseInt(str[0]);
               int b = Integer.parseInt(str[1]);
               int c = Integer.parseInt(str[2]);
               int d = Integer.parseInt(str[3]);
               int e = Integer.parseInt(str[4]);           
               System.out.println(grades(a, b, c, d, e));       
    }
static char grades(int a, int b, int c, int d, int e)
    {
        int sum = a+b+c+d+e;
        int per = sum/5;
      if(per >= 80)
			return 'A';
		else if(per >= 60)
			return 'B';
		else if(per >= 40)
			return 'C';
		else
			return 'D';
        }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?