You are on page 1of 1

import java.io.

*; class Marks { public static void main()throws IOException { int a,b,c,d,e,f,g,h; int total; int sbtotal; double per; String div; System.out.println("*********MARKSHEET***********"); System.out.println(" made by Yash Bafna"); System.out.println(""); System.out.println("Enter marks of the subjects"); BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); a=Integer.parseInt(in.readLine()); b=Integer.parseInt(in.readLine()); c=Integer.parseInt(in.readLine()); d=Integer.parseInt(in.readLine()); e=Integer.parseInt(in.readLine()); f=Integer.parseInt(in.readLine()); g=Integer.parseInt(in.readLine()); total=a+b+c+d+e+f+g; sbtotal=700; per=(total*100)/sbtotal; { if(per<=40) div="Third"; else if(per>40&&per<=60) div="Second"; else div="First"; } System.out.println("Your total="+total); System.out.println("Your percentage="+per); System.out.println("Your division="+div); } }

You might also like