For this Question: Given marks of a student in 5 subjects. You need to find the grade that a student would get on the basis of the percentage obtained. Grades computed are as follows:
If the percentage is >= 80 then print Grade ‘A’
If the percentage is <80 and >=60 then print Grade ‘B’
If the percentage is <60 and >=40 then print Grade ‘C’
else print Grade ‘D’The 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)/5)*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?