Results 1 to 8 of 8
  1. #1
    Sunshine is offline Member
    Join Date
    Apr 2008
    Location
    Ireland
    Posts
    4
    Rep Power
    0

    Exclamation Java Question, i need to be answered

    Hi all,

    im a college student studying java bt im having a few problems with one questiong, just thought some1 out there might no what the best way to do it would be....

    QUESTION

    Write a bank account class that allows you to:
    1.Open an account with an intital balance(contructor)
    2.Deposit Money
    3.Withdraw Money
    4.Retrieve the balance of the amount

    Write a class called InternetBearingAccount that inherits from the account class and that allows you to:
    1.Open an account of this type(the contrctor)
    2.Add monthly interest to you balance

    Write a test class to open an interest account, to deposit money, and to wothdraw and add interest to the balance!!

    Hope you guys can help me with this one!!

    Thanks,
    Sunshine

  2. #2
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Location
    Jaipur(India)
    Posts
    318
    Rep Power
    7

    Default

    Quote Originally Posted by Sunshine View Post
    Add monthly interest to you balance
    Hello Sunshine

    It is not as easy as you are assuming there are lot of coding and lot of issues that need to be consider in banking application.

    Well If you require basic idea of this then one can give you example of this.

    So What have you done so far?
    sanjeev,संजीव

  3. #3
    Sunshine is offline Member
    Join Date
    Apr 2008
    Location
    Ireland
    Posts
    4
    Rep Power
    0

    Default

    I havent even started it, this is an exam question that has come up a few times

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    As Snjeev says, first decide the way to working out this question. Break into steps and start on one by one. You have to do a lot here my friend.

  5. #5
    Sunshine is offline Member
    Join Date
    Apr 2008
    Location
    Ireland
    Posts
    4
    Rep Power
    0

    Default

    ya, im worried ill get caught for time in the exam.

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    1.Open an account with an intital balance(contructor)
    Java Code:
    public class BankAccount {
    
         private double initialBalance;
    
         public BankAccount() {
            // constructor
            initialBalance = 500.0;
         }
    }
    I just give a hint. Can you get what I wrote here?

  7. #7
    DonCash's Avatar
    DonCash is offline Moderator
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    240
    Rep Power
    9

    Default

    Hey Sunshine, welcome to the Java Forums.

    How long is the exam?
    Did this post help you? Please me! :cool:

  8. #8
    Sunshine is offline Member
    Join Date
    Apr 2008
    Location
    Ireland
    Posts
    4
    Rep Power
    0

    Default

    the exam is 3 hours long, that is only one question tho, we ave three others to do in that time

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  2. A core java Question
    By chravikumar008 in forum New To Java
    Replies: 2
    Last Post: 04-21-2008, 09:04 AM
  3. If you have a question that was answered to your satisfaction,
    By CaptainMorgan in forum Java Software
    Replies: 0
    Last Post: 03-29-2008, 01:55 PM
  4. New Comer, Java C# question
    By lmei007 in forum Advanced Java
    Replies: 0
    Last Post: 02-04-2008, 05:54 PM
  5. Java Review Question
    By toad in forum New To Java
    Replies: 1
    Last Post: 10-29-2007, 07:13 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
  •