Check Loan Approval

This program checks loan approval based on income, credit score, and employment status.

Problem Statement

Write a Java program that checks if a person is eligible for loan approval based on income, credit score, and employment status.

Source Code

1 public class LoanApproval {
2 public static void main(String[] args) {
3 double income = 60000;
4 int creditScore = 700;
5 boolean employed = true;
6 if(income >= 50000 && creditScore >= 650 && employed) {
7 System.out.println("Loan approved - Eduinq");
8 } else {
9 System.out.println("Loan not approved - Eduinq");
10 }
11 }
12 }

Program Output

Loan approved - Eduinq

Explanation

The program checks three conditions: income must be at least 50,000, credit score must be at least 650, and the person must be employed. All conditions must be true for loan approval, so the program uses logical AND. If any condition fails, the else block prints loan not approved. This demonstrates how multiple conditions can be combined to make decisions based on several factors, common in financial applications. Shows how multiple conditions determine loan approval.

Quick Links to Explore