- Home
- Chapter 1 - Object Oriented Programming Concepts
- Object Oriented Programming Concepts
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions
- Chapter 2 - Introduction to Java
- Introduction to Java
- Multiple Choice Questions
- Assignment Questions
- Chapter 3 - Values and Data Types
- Values and Data Types
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions
- Chapter 4 - Operators in Java
- Operators in Java
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions
- Chapter 5 - User-Defined Methods
- User-Defined Methods
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions
- Chapter 6 - Input in Java
- Input in Java
- Multiple Choice Questions
- Assignment Questions and Programs
- Chapter 7 - Mathematical Library Methods
- Mathematical Library Methods
- Multiple Choice Questions
- Assignment Questions
- Chapter 8 - Conditional Constructs in Java
- Conditional Constructs in Java
- Multiple Choice Questions
- Assignment Questions and Programs
- Chapter 9 - Iterative Constructs in Java
- Iterative Constructs in Java
- Multiple Choice Questions
- State whether the given statements are True or False
- Assignment Questions and Programs
- Chapter 10 - Nested for loops
- Nested for loops
- Assignment Questions and Programs
- Chapter 11 - Constructors
- Constructors
- Multiple Choice Questions
- Assignment Questions and Programs
- Chapter 12 - Library Classes
- Library Classes
- Multiple Choice Questions
- Assignment Questions
- Chapter 13 - Encapsulation and Inheritance
- Library Classes
- Multiple Choice Questions
- Assignment Questions
- Chapter 14 - Arrays
- Library Classes
- Multiple Choice Questions
- Assignment Questions
- Chapter 15 - String Handling
- Library Classes
- Multiple Choice Questions
- Assignment Questions
Conditional Constructs in Java
Chapter 8
Conditional Constructs in Java
Class 10 - Logix Kips ICSE Computer Applications with BlueJ
![]() Share with a Friend |
Java Program: Admission Eligibility Check
23. Admission in a professional course is subject to the following criteria:
Marks in Physics >= 70Marks in Chemistry >= 60
Marks in Mathematics >= 70
Total marks in all subjects >= 225
Or
Total marks in Physics and Mathematics >= 150
Write a program in Java to accept marks in these 3 subjects (Physics, Chemistry, and Mathematics) and display if a candidate is eligible.
import java.util.Scanner;
public class AdmissionEligibility {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter Physics marks: ");
int physics = sc.nextInt();
System.out.print("Enter Chemistry marks: ");
int chemistry = sc.nextInt();
System.out.print("Enter Mathematics marks: ");
int maths = sc.nextInt();
int total = physics + chemistry + maths;
int phyMathTotal = physics + maths;
if ((physics >= 70 && chemistry >= 60 && maths >= 70 && total >= 225)
|| phyMathTotal >= 150) {
System.out.println("Candidate is eligible for admission.");
} else {
System.out.println("Candidate is not eligible for admission.");
}
sc.close();
}
}
Output
Sample Input Enter Physics marks: 75 Enter Chemistry marks: 65 Enter Mathematics marks: 80 Sample Output Candidate is eligible for admission.
✅ Eligibility Logic Used
A candidate is eligible if either of the following is true:
✔ Physics ≥ 70
✔ Chemistry ≥ 60
✔ Mathematics ≥ 70
✔ Total ≥ 225
OR
✔ Physics + Mathematics ≥ 150
