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 05:10
Read the code below. what will the computer print if the input for year_variable is 1700? if year_variable == 1776: print("your answer is correct. the declaration of independence was signed in “year_variable”.") elif year_variable < 1776: compute_variable = 1776 - year_variable. print("add “compute_variable“ years to your answer for the correct answer.") elif year_variable > 1776: compute_variable = year_variable - 1776 print("subtract “compute_variable” years from your answer for the correct answer.")
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
question
Computers and Technology, 23.06.2019 23:00
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a.add symmetry b.create a unified publication c.provide consistency d.save money
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
George is working as a programming team lead. which statements correctly describe the skills that he requires?
Answers: 3
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, 16.06.2020 22:57