Java Question Set I – Conditional Statements in Java

6. Write a program to automate the following loan policy.

 

AGE GENDER PROFESSION

PERSONAL

ASSET

ELIGIBLE

LOAN AMOUNT

16-25 M/F Self-Employed

Professional

>25000 10000

15000

26-40 M/F Self-Employed

Professional

>40000 25000

30000

41-60 M/F Self-Employed

Professional

>50000 30000

40000

>60 M/F Self-Employed

Retired

 >25000  35000 – Age*100

25000 – Age*100

Write a program that accepts age, gender, job status and assets, and return the eligible loan amount.

This question seems harder than it is, actually it can be easily done using some nested if else alone. Check out the below code of the program and I’m quite sure you will be able to understand the logic of your own.

Output:

loan-program-in-java

Continue to next page for another question.

0 Responses on Java Question Set I - Conditional Statements in Java|

Leave a Message

Your email address will not be published. Required fields are marked *

CommentLuv badge

Pin It on Pinterest