• Post Reply Bookmark Topic Watch Topic
  • New Topic

Inheritance program help  RSS feed

 
James Ferguson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Data Name Values

I am new to this website as well as java and wanted help on changing the below program about dog and cats to the loan one but I don't know how to set it out, any help will be appreciated.

Type Of Loan must be “secured” or “unsecured”
Amount amount you want to borrow ( in pounds)
Duration how long you want to borrow the money ( in years)

For Secured Loans Only:
Mortgage Type must be “endowment” or “repayment”
Value of House Value of your house in pounds

For Unsecured Loans Only:
Earnings per year must be greater than 0

Once you have validated the user input you must apply the following rules to determine if the Loan application can be granted:

• If applying for a secured loan:
o If applicant has a “repayment” type mortgage then loan can only be up to 10% of current value of their house.
o if applicant has an “endowment” type mortgage then loan can only be up to 20% of current value of their house

• If applying for an unsecured loan;
o Maximum amount applied for must be 20% of earnings

If the loan is invalid you must output an appropriate message. The program should be written using multiple class structures.


• LoanApplication (will contain main() function)
• Loan
• SecuredLoan (which extends Loan) and
• UnSecuredLoan (which extends Loan)





 
Tony Docherty
Bartender
Posts: 3268
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

I'd strongly advise against trying to change a program about Pets into a program for Loans. It is going to be easier, less confusing and a better learning experience to write the Loans program from scratch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!