Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 8th, 2020 151 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package UTS7;
  2. import java.util.Scanner;
  3.  
  4. public class UTS7 {
  5.  
  6.     public static void main(String[] args) {
  7.         Scanner input = new Scanner(System.in);
  8.        
  9.         System.out.println("Hasil Seleksi Penerimaan Karyawan\n");
  10.        
  11.         System.out.print("No. Peserta : ");
  12.         int no = input.nextInt();
  13.         String remove_newline = input.nextLine();
  14.         System.out.print("Nama        : ");
  15.         String nama = input.nextLine();
  16.         System.out.print("Ujian I     : ");
  17.         float uj1 = input.nextFloat();
  18.         System.out.print("Ujian II    : ");
  19.         float uj2 = input.nextFloat();
  20.        
  21.         float na =(float) ((float) (0.4*uj1) + (0.6*uj2));
  22.         System.out.println("Nilai Akhir : "+na);
  23.        
  24.         if(na >= 0 && na <= 74){
  25.             System.out.println("Keterangan  : Tidak Lulus");
  26.         }else if(na >= 75 && na <= 84){
  27.             System.out.println("Keterangan  : Cadangan");
  28.         }else if(na >= 85 && na <= 100){
  29.             System.out.println("Keterangan  : Lulus");
  30.         }
  31.     }
  32.    
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top