import java.*;
import java.io.*;
import java.util.*;

class Grade_calc

{

 void display()
 {
   

/////////////* input of CAT-1 number */

   Scanner sc = new Scanner(System.in);
   float cat_1;
   float cat1_calc=0;
   System.out.print("\nEnter Your CAT-1 Marks And our Range is (0 to 50) : ");
      cat_1 = sc.nextFloat();
      if(cat_1 >= 0 && cat_1 = 0 && cat_2 = 0 && assig = 0 && proj = 0 && external <= 100)
	  {
	    external_calc = ((external)/2);
	   } 
	  else 
       {
        System.out.print("\nEnter Your External Marks Your range is (0 to 100) : ");
 	    float external_sec = sc.nextFloat();
        external_calc = ((external_sec)/2);
        }	  
 

     float total = ( cat1_calc + cat2_calc + assig + proj + external_calc);
	  float present = (total);
	  
	   
///////////////////////////////////////////////////////////////////////////////////

        System.out.print("\n\t\tCAT-1       Marks of 15% is : "+ cat1_calc);
        System.out.print("\n\t\tCAT-2       Marks of 15% is : "+ cat2_calc);
	System.out.print("\n\t\tAssignement Marks of 100% is : "+ assig); 
	System.out.print("\n\t\tProject     Marks of 100% is : "+ proj);
	System.out.print("\n\t\tTermend    Marks of 50% is : "+ external_calc);
        System.out.print("\n\n\t\t\tTotal marks : "+total);
        System.out.print("\n\t\t\tPersentage : "+present);
		


////////////////////////////////////////////////////////////////////////////////
	  
       if(present =90)
          System.out.println("\n\t\t\tGrade : A+  GRADE");
       else if(present =80)  		 
          System.out.println("\n\t\t\tGrade : A  GRADE");
       else if(present =60)  		 
          System.out.println("\n\t\t\tGrade : B+  GRADE");
       else if(present =40)  		 
          System.out.println("\n\t\t\tGrade : B  GRADE");
       else
          System.out.println("\n\t\t\tGrade : Fail");

 }  
	
	public static void main(String atgs[])
	 {	 		 
	   System.out.println("ENTER MARKS OF STUDENT\n");
           Grade_calc obj = new Grade_calc();
           obj.display();
	  }  
   
   }   	// end of public class
Input
Enter Your CAT-1 Marks And Our Range is (0 to 50) : 30
Enter Your CAT-2 Marks And Our Range is (0 to 50) : 40
Enter Your Assignement Marks And Our Range is (0 to 50) : 7
Enter Your Project Marks And Our Range is (0 to 50) : 6
Enter Your Termend Marks And Our Range is (0 to 50) : 60

Output
      CAT-1       Marks of 15% is : 9.0
      CAT-2       Marks of 15% is : 12.0
      Assignment  Marks of 100% is : 7.0
      Project     Marks of 100% is : 6.0
      Termend     Marks of 50% is : 30.0
              
             Total marks : 64.0
             Persetage : 64.0
             Grade : B+ GRADE  

Leave a Reply

Subscribe to Posts | Subscribe to Comments

All Notes on BCA

All Notes  on BCA
BCA all subjects notes

Total Pageviews

Translate

Powered by Blogger.

Copyright © All Notes on BCA