Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will write Java programs in Eclipse to solve these word problems Read these instructions on how to name and submit the Java files. Please

image text in transcribedimage text in transcribed

You will write Java programs in Eclipse to solve these word problems Read these instructions on how to name and submit the Java files. Please make sure your program compiles before you submit it. Make sure you name your Java file and class the same (otherwise it will not compile). For example, the class names are case-sensitive 1. will be in a file called CompareNames.java; remember, the Do not create a package. You can tell if your file is in a package if there is a package statement near the top of it 2. 3. Make sure you use the checkbox to create the Javadoc comments, and you put your name in the file as the @author. LAB 3 Create a Project called "LoanDecisign" with a class called "LaanDecisian" Write a Java program to approve or reject a loan based on the borrower's credit score. Ask for the following values (use double variables) Credit Score (must be between 300 and 850) Loan Amount (must be between 500 and 20000) You should start by copying your code from "CreditScore" and modify it as follows a. Define an enum (CreditRiskEnum) for the credit risk (EXCELLENT, VERYGOOD, GOOD, b. Assign the correct enum value to a variable "creditRisk" with multi-way branching (if c. Use a switch statement on the creditRisk variable, then use an if statement in each FAIR, POOR, INVALID). Put it inside your class, above the main method - else if) case to approve the loan if it is less than or equal to the credit limit creditRisk INVALID POOR 500 FAIR 1000 GOOD 2,000 VERYGOOD 5,000 EXCELLENT 10,000 If either of the input values is out of range, output an error message CreditScore2 by Ray Henry Enter the Credit Score: 644 Enter the Loan Amount 1001 The loan application is denied

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

8. Satyam Computer Services Limited

Answered: 1 week ago

Question

2. Explain how the role of training is changing.

Answered: 1 week ago

Question

7. General Mills

Answered: 1 week ago