forked from OOP-ADF/Task_1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndexPoint.java
More file actions
32 lines (28 loc) · 1022 Bytes
/
IndexPoint.java
File metadata and controls
32 lines (28 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package javaapplication1;
import java.util.Scanner;
/**
*
* @author rakasetya
*/
public class JavaApplication1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("masukkan nilai UTS : ");
int UTS = input.nextInt();
System.out.print("masukkan nilai UAS : ");
int UAS = input.nextInt();
System.out.print("masukkan nilai Quiz: ");
int Quiz = input.nextInt();
double NilaiKeseluruhan = 0.35*UTS + 0.4*UAS + 0.25*Quiz;
if (NilaiKeseluruhan >=85 && NilaiKeseluruhan<=100)
System.out.print("Excelent");
else if(NilaiKeseluruhan >=75 && NilaiKeseluruhan <=84)
System.out.print("Very Good");
else if(NilaiKeseluruhan >=65 && NilaiKeseluruhan <=74)
System.out.print("Good");
else if(NilaiKeseluruhan >=50 && NilaiKeseluruhan <= 64)
System.out.print("Accepted");
else
System.out.print("Failed");
}
}