Question
Java Write a program in Java that checks if the user is eligible for a loan or not. Your program should prompt the user enter
Java
Write a program in Java that checks if the user is eligible for a loan or not. Your program should prompt the user enter credit score and annual salary. If the users credit score is above 700 and salary is higher than 80,000, then the user is eligible for a third of the salary. Otherwise, the user is not eligible for a loan. See sample program below: You will need &&/|| (and/or) operators to make sure both inputs meet requirements. Sample programs: Enter your credit score >>> 750 Enter your annual salary >>> 98000 You are eligible to borrow 32666 Enter your credit score >>> 705 Enter your annual salary >>> 78000 You are not eligible for a loan Enter your credit score >>> 600 Enter your annual salary >>> 78000 You are not eligible for a loan
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started