java

java


/*

 * To change this license header, choose License Headers in Project Properties.

 * To change this template file, choose Tools | Templates

 * and open the template in the editor.

 */


package nothesaplama;

import java.util.Scanner;

/**

 *

 * @author umitunver

 */

public class NotHesaplama {


  

  /**

   * @param args the command line arguments

   */

   

  static void NotHesaplamaMethod(int vizenot, int finalnot){

    

     

   

    double ort = Math.floor((finalnot*0.6)+(vizenot*0.4));

    System.out.print(ort);

    if(ort>90 && ort<100){

      System.out.print(" AA ");

    }

     if(ort>=71 && ort<=90){

       System.out.print(ort+" BA ");

    }

     if(ort>=51 && ort<=70){

       System.out.print(" BB ");

    }

     if(ort>=31 && ort<=50){

       System.out.print(" CB ");

    }

     if(ort>=21 && ort<=30){

       System.out.print(" CC ");

    }

     if(ort>=0 && ort<=20){

       System.out.print(" FF ");

    }

  }

  public static void main(String[] args) {

    System.out.print("Vize Notu Girin: ");

    Scanner girdi = new Scanner(System.in);

    int vizenot = girdi.nextInt();

    System.out.print("Final Notu Girin: ");

    int finalnot = girdi.nextInt();

    NotHesaplamaMethod(vizenot,finalnot);

  }

   

}


Report Page