Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

assignment  RSS feed

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

I just want some advice about how I structure these classes and how to do the if statements.

Data Name Values
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
 
fred rosenberger
lowercase baba
Bartender
Posts: 12542
48
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you got so far?

Thing generally work better here if you show us what you've done and then ask specific, focused questions. Simply posting your homework assignment and asking very broad questions is going to make most people think you're trying to get us to do all the work.
 
Norm Radder
Ranch Foreman
Posts: 2240
28
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also posted at: http://www.java-forums.org/new-java/95810-assignment.html
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37234
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Norm!

James: We are fine with posting the same question on multiple sites. We just ask that you Disclose that
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!