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
55 lines (47 loc) · 1.28 KB
/
IndexPoint.java
File metadata and controls
55 lines (47 loc) · 1.28 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Alfian Rahman Aziz
* 1301150063
* IF 39-07
*/
package indexpoint;
import java.util.Scanner;
/**
*
* @author Alfian R7
*/
public class IndexPoint {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
scores();
}
public static void scores() {
double UAS, UTS, QUIS,score;
Scanner scan = new Scanner(System.in);
System.out.println("Masukan Nilai UAS : ");
UAS = scan.nextInt();
System.out.println("Masukan Nilai UTS : ");
UTS = scan.nextInt();
System.out.println("Masukan Nilai QUIS : ");
QUIS = scan.nextInt();
score = (UAS * 0.35) + (UTS * 0.40) + (QUIS * 0.25);
System.out.println("Nilai akhir " + score);
if ( 100>= score && score >= 85){
System.out.println("Excenllent");
}
else if ( score >=75 && score <=84){
System.out.println("Very Good");
}
else if ( score <= 74 && score >=65 ){
System.out.println("Good");
}
else if ( 64 >=score && score >= 50 ){
System.out.println("Accepted");
}
else if ( score <49 ){
System.out.println("Failed");
}
}
}