Question
Create a Loantaker.java class that records data for a bank's loan taker. For each loan taker, the name, surname, the amount of the loan taken,
Create a Loantaker.java class that records data for a bank's loan taker. For each loan taker, the name, surname, the amount of the loan taken, and the amount of the loan that has not been paid (debt) must be registered. (this data gets value from the constructor)
Write in this class the method that changes the value of the unpaid loan amount, depending on the value of the next installment paid by the loan taker. public void set_LoanPayment (double payment)
Add to this class the methods that display the name, surname, the amount of credit taken and the amount of credit left unpaid. getName (), getSurname (), getLoanValue (), get_ToBePaid ()
Create a LoantakerTest.java class in which to create a loan taker with data from you. Display the amount of loan left unpaid for this loan taker. The loan taker must pay the next installment. Post the balance of his loan after this payment.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started