Results 1 to 3 of 3

Thread: assignment

  1. #1
    james.d2 is offline Member
    Join Date
    Mar 2016
    Posts
    1
    Rep Power
    0

    Default assignment

    Any help on the code of this program will be appreciated.



    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

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: assignment

    Any help on the code of this program
    You forgot to post the code you are having problems with.
    Be sure to wrap the code in code tags.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,422
    Blog Entries
    7
    Rep Power
    28

    Default Re: assignment

    First define your classes, e.g. Loan (this one can probably be an interface), SecuredLoan, UnsecuredLoan, Person etc. Next define the way your classes interact, e.g. a Person can apply (this is a method) for a Loan etc. Pay attention to the tricky parts, e.g. can a Person have more than one Loan (for simplicity probably not).

    It's your turn now ...

    kind regards,

    Jos
    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. need help at assignment
    By ng min teck in forum New To Java
    Replies: 20
    Last Post: 08-01-2012, 05:57 PM
  2. Assignment
    By neowolf in forum New To Java
    Replies: 3
    Last Post: 07-15-2012, 06:20 PM
  3. Need help with assignment.
    By smileybear33 in forum New To Java
    Replies: 2
    Last Post: 04-26-2011, 04:47 AM
  4. Can anyone help me in my Assignment
    By nono in forum New To Java
    Replies: 18
    Last Post: 11-15-2010, 06:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •