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 20:00
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
Experimental data that is expressed using numbers is said to be
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
question
Computers and Technology, 24.06.2019 13:50
Write a program that performs a simple n-body simulation, called "jumping leprechauns." this simulation involves n leprechauns, numberd 1 to n. it maintains a gold value g_i for each leprechaun i, which begins with each leprechaun starting out with a million dollars worth of gold, that is, g_i = 1000000 for each i = 1,. in addition, the simulation also maintains, for each leprachaun,i, a place on the horizon, which is represented as a double-precision floating point number, x_i. in each iteration of the simulation, the simulation processes the leprachauns in order. processing a leprachaun i during its iteration begins by computing a new place on the horizon for i, which is determined by the assignment:
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, 14.11.2019 04:31
question
Social Studies, 14.11.2019 04:31
Questions on the website: 13722364