-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJP8.java
More file actions
31 lines (27 loc) · 969 Bytes
/
JP8.java
File metadata and controls
31 lines (27 loc) · 969 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 jp;
import java.util.Scanner;
public class JP8 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Podaj staż pracy :\n (1) Junior 0-5 lat \n (2) Regular 5-10 lat \n (3) Senior wiecej niz 10 lat \n (0) Wyjście");
int empl_fell = scanner.nextInt();
if(empl_fell >= 0 && empl_fell < 5){
System.out.println("Junior");
}else if(empl_fell >= 5 && empl_fell < 10){
System.out.println("Regular");
} else {
System.out.println("Senior");
}
switch (empl_fell){
case 0: case 1: case 2: case 3: case 4:
System.out.println("Junior");
break;
case 5: case 6: case 7: case 8: case 9:
System.out.println("Regular");
break;
default:
System.out.println("Senior");
}
scanner.close();
}
}