Calculate percentage of student on basis of 5 subject marks and also give grades on basis of percentage
01/01/2002 08:14
*/
public class Studentpercentage
{
public static void main(String args[])
{
String Student;
int a=75;
int b=72;
int c=71;
int d=79;
int e=69;
int f=a+b+c+d+e;
int percentage=f*100;
double g=percentage/400;
System.out.println("Husain");
System.out.println(g);
if(g>=90)
{
System.out.println("A grade");
}
if(g>=80&&g<=90)
{
System.out.println("B grade");
}
if(g>=70&&g<=80)
{
System.out.println("c grade");
}
}