-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdmissionForm.java
More file actions
31 lines (31 loc) · 1.04 KB
/
Copy pathAdmissionForm.java
File metadata and controls
31 lines (31 loc) · 1.04 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
import java.util.Scanner;
public class AdmissionForm {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
float percentage;
boolean Entrance_qualified,Document_verified;
System.out.print("Enter your percentage : ");
percentage=sc.nextFloat();
if (percentage>=60){
System.out.print("Entrance qualified (True/False) : ");
Entrance_qualified=sc.nextBoolean();
if (Entrance_qualified){
System.out.print("Documents verified (True/False) : ");
Document_verified=sc.nextBoolean();
if (Document_verified){
System.out.println("Admission confirmed");
}
else{
System.out.println("Documents pending");
}
}
else{
System.out.println("Entrance not qualified");
}
}
else{
System.out.println("Not eligible");
}
sc.close();
}
}