Friday, 25 November 2016

Source Code Memberikan Grade pada nilai Siswa/Mahasiswa

Nama : Galih Rakasiwi
Source Code Memberikan Grade pada nilai Siswa/Mahasiswa.
Tanggal : 11/24/2016
Kelas : S1/TI/3A/PagiSK/KD : Java
NPM : 43a87006150068


Assalamualaikum Wr. wb

Kali ini saya ingin membagikan Source Code cara Memberikan Grade pada nilai Siswa/Mahasiswa

import java.util.Scanner;

public class soal5 {

public static void main(String[] args) {
// TODO Auto-generated method stub
int hadir,tugas,uts,uas;
double akhir;
String NPM,b,keterangan,ket,nama,grade;
Scanner s=new Scanner(System.in);
System.out.print("NPM = ");
NPM=s.next();
System.out.print("NAMA LENGKAP = ");
nama=s.next();
System.out.print("NILAI HADIR = ");
hadir=s.nextInt();
System.out.print("NILAI TUGAS = ");
tugas=s.nextInt();
System.out.print("NILAI UTS = ");
uts=s.nextInt();
System.out.print("NILAI UAS = ");
uas=s.nextInt();

System.out.println("NPM Mahasiswa="+NPM);
System.out.println("Nama Mahasiswa="+nama);


akhir= (hadir*10/14)+(tugas*20/100)+(uts*30/100)+(uas*40/100);

System.out.println("NILAI AKHIR="+akhir);

if(akhir>=80)
{
System.out.println("Grade = A");
System.out.println("Memuaskan");
}

else if(akhir>=66&&akhir<80)
{
System.out.println("Grade = B");
System.out.println("Baik");
}

else if(akhir>=55&&akhir<66)
{
System.out.println("Grade = C");
System.out.println("Cukup");
}

else if (akhir>=41&&akhir<55)
{
System.out.println("Grade = D");
System.out.println("Kurang");
}

else
{
System.out.println("Grade = E");
System.out.println("Gagal");
};

if(akhir>=55)
{
System.out.println("Keterangan= Lulus");
}

else
{
System.out.println("Keterangan= Tidak Lulus");
}


}

}

oke selesai guys

Wassalamualaikum Wr. wb

Lorem ipsum is simply dummy text of the printing and typesetting industry.

1 comments

Best Casinos in Las Vegas (2021) | MapyRO
Is Casinos 아산 출장마사지 Nearby? · Tropicana 고양 출장안마 Las Vegas · Tropicana Las Vegas · 강원도 출장마사지 Harrah's Las Vegas · Tropicana Las Vegas · 양주 출장샵 Tropicana Las Vegas · Harrah's 파주 출장마사지


EmoticonEmoticon