-
Notifications
You must be signed in to change notification settings - Fork 0
/
tugas.java
72 lines (70 loc) · 2.71 KB
/
tugas.java
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* 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 projekperdana;
import java.util.Scanner;
/**
*
* @author MOKLET GAMING
*/
public class TugasRPL {
public static void main(String[] args) {
Scanner in = new Scanner (System.in);
int pil;
String pil1;
System.out.println("PILIH JALUR MASUK");
System.out.println("1. SBMPTN");
System.out.println("2. SNMPTN");
System.out.println("3. Mandiri");
System.out.print("PILIH (Ketik Angka): ");
pil = in.nextInt();
System.out.println("===========================");
if (pil == 1){
System.out.print("GOLONGAN PENDAPAT A/B/C = ");
pil1 = in.next();
System.out.println("---------------------------");
if (pil1.equalsIgnoreCase("a")){
System.out.println("DSP = 5 Juta");
System.out.println("SPP = 500 Ribu");
}else if (pil1.equalsIgnoreCase("b")){
System.out.println("DSP = 15 Juta");
System.out.println("SPP = 1 Juta");
}else if (pil1.equalsIgnoreCase("c")){
System.out.println("DSP = 30 Juta");
System.out.println("SPP = 2 juta");
}
}if (pil == 2){
System.out.print("GOLONGAN PENDAPAT A/B/C = ");
pil1 = in.next();
System.out.println("---------------------------");
if (pil1.equalsIgnoreCase("a")){
System.out.println("DSP = 7 Juta");
System.out.println("SPP = 500 Ribu");
}else if (pil1.equalsIgnoreCase("b")){
System.out.println("DSP = 17 Juta");
System.out.println("SPP = 1 Juta");
}else if (pil1.equalsIgnoreCase("c")){
System.out.println("DSP = 35 Juta");
System.out.println("SPP = 2 juta");
}
}if (pil == 3){
System.out.print("GOLONGAN PENDAPAT A/B/C = ");
pil1 = in.next();
System.out.println("---------------------------");
if (pil1.equalsIgnoreCase("a")){
System.out.println("DSP = 10 Juta");
System.out.println("SPP = 1 Juta");
}else if (pil1.equalsIgnoreCase("b")){
System.out.println("DSP = 25 Juta");
System.out.println("SPP = 2 Juta");
}else if (pil1.equalsIgnoreCase("c")){
System.out.println("DSP = 50 Juta");
System.out.println("SPP = 3 juta");
}
}else {
System.out.println("Pilihan Salah");
}
}
}