please answer this and write the whole program
Attachments:
Answers
Answered by
1
import java.io.*;
public class marks
{
public static void main()throws IOException
{
BufferedReader buff=new BufferedReader(new InputStreamReader(System.in));
int a;
System.out.print("Enter the Marks Obtained : ");
a=Integer.parseInt(buff.readLine());
if((a>=85)&&(a<=100))
System.out.println("System.out.println("Grade alloted : A");
System.out.println("System.out.println("Excellent");
if((a>=60)&&(a<85))
System.out.println("System.out.println("Grade alloted : B");
System.out.println("System.out.println("Good");
if((a>=40)&&(a<60))
System.out.println("System.out.println("Grade alloted : C");
System.out.println("System.out.println("Fair");
if((a>0)&&(a<40))
System.out.println("System.out.println("Grade alloted : D");
System.out.println("System.out.println("Needs Impovement");
}
}
public class marks
{
public static void main()throws IOException
{
BufferedReader buff=new BufferedReader(new InputStreamReader(System.in));
int a;
System.out.print("Enter the Marks Obtained : ");
a=Integer.parseInt(buff.readLine());
if((a>=85)&&(a<=100))
System.out.println("System.out.println("Grade alloted : A");
System.out.println("System.out.println("Excellent");
if((a>=60)&&(a<85))
System.out.println("System.out.println("Grade alloted : B");
System.out.println("System.out.println("Good");
if((a>=40)&&(a<60))
System.out.println("System.out.println("Grade alloted : C");
System.out.println("System.out.println("Fair");
if((a>0)&&(a<40))
System.out.println("System.out.println("Grade alloted : D");
System.out.println("System.out.println("Needs Impovement");
}
}
Similar questions