subject

The Java Programmers Loan (JPL) Company makes loans of up to $50,000 for software development projects. There are two categories of Loans â those to businesses and those to individual applicants. Write an application that tracks all new loans. The application also must calculate the total amount owed at the due date (original loan amount + loan fee) as well as the total amount that JPL has loaned out in each category and in total. The application should contain the following classes: Loan â a public abstract class that implements the LoanConstants interface. A Loan includes a loan number, customer last name, amount of loan, interest rate, and term. The constructor requires data for each of the fields except interest rate. Do not allow loan amounts greater than $50,000. Force any loan term that is not one of the three defined in the LoanConstants interface to a short-term (1 year) loan. Create a toString() method that displays all the loan data. Create an equals() method that determines whether two compared loans are equivalent.

LoanConstants â a public interface. LoanConstants includes constant values for short-term (1 year), medium-term (3 years), and long-term (5 years) loans. It also contains constants for the company name and the maximum loan amount.

BusinessLoan â a public class that extends Loan. The BusinessLoan constructor sets the interest rate to 1% more than the current prime interest rate.
PersonalLoan â a public class that extends Loan. The PersonalLoan constructor sets the interest rate to 2% more than the current prime interest rate.
CreateLoans â an application that creates an array of five Loans. Prompt the user for the current prime interest rate. Then, in a loop, prompt the user for the loan type and all relevant information for that loan. Store the created Loan objects in the array. When data entry is complete, display all the loans.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:10
Linux is distributed under gnu gpl. why is this important? a. it ensures that only torvalds can profit from the sale of linux b. it prevents unknowledgeable users from downloading programs they don't know how to operate. c. it provides protection for the developers who created linux. d. it states that anyone can copy, modify, and share the program if changes are made public.
Answers: 1
question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Apunishment or the threat of punishment used to enforce conformity. select the best answer from the choices provided t f
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
You know the right answer?
The Java Programmers Loan (JPL) Company makes loans of up to $50,000 for software development projec...
Questions
question
Mathematics, 02.04.2020 21:16
question
Mathematics, 02.04.2020 21:16
Questions on the website: 13722361