-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChef_and_Cook_Off.java
More file actions
25 lines (24 loc) · 895 Bytes
/
Chef_and_Cook_Off.java
File metadata and controls
25 lines (24 loc) · 895 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
import java.util.Scanner;
public class Chef_and_Cook_Off {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
while(t-->0){
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int d = sc.nextInt();
int e = sc.nextInt();
int total = a + b + c + d + e;
switch (total) {
case 0 -> System.out.println("Beginner");
case 1 -> System.out.println("Junior Developer");
case 2 -> System.out.println("Middle Developer");
case 3 -> System.out.println("Senior Developer");
case 4 -> System.out.println("Hacker");
case 5 -> System.out.println("Jeff Dean");
default -> System.out.println();
}
}
}
}