-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstround.java
More file actions
43 lines (33 loc) · 1.27 KB
/
Copy pathFirstround.java
File metadata and controls
43 lines (33 loc) · 1.27 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
import java.util.Scanner;
public class Firstround{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String studentName;
String collegeName;
int rank;
System.out.print("Enter Student Name: ");
studentName = sc.nextLine();
System.out.print("Enter College Name: ");
collegeName = sc.nextLine();
System.out.print("Enter Your Kcet Rank: ");
rank = sc.nextInt();
System.out.println("\n----- Admission Details -----");
System.out.println("Student Name : " + studentName);
System.out.println("College Name : " + collegeName);
System.out.println("Kcet Rank Will Be : " + rank);
// Eligibility Check
if (rank <= 1000) {
System.out.println("Secure for Mechanical and civil course In First Round.");
}
else if (rank <= 5000) {
System.out.println("Secure for Information Science In First Round.");
}
else if (rank <= 10000) {
System.out.println("Secure for Electronics In First Round.");
}
else {
System.out.println("Secure for Computer Science In First Round.");
}
sc.close();
}
}