Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions