Results 1 to 13 of 13
  1. #1
    newarcher is offline Member
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0

    Default I need help with an assignment

    Hello. First post in this forum, so please be nice to me.

    I've just started a bachelor at the IT University of Copenhagen, where we program in Java. One of the guys from my class and me, have decided to make a banking programme, to get some more programming experience in Java. However we have run in to some problems on how to design it. Heres what we want to be able to do:

    Add costumors/clients
    Remove costumors/clients
    Add accounts to a client
    Remove accounts from a client
    Deposite money to an account
    Withdraw money from an account

    Hope that someone can help me out on how to build the program up.
    BTW. We're using BlueJ.

    //newarcher

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: I need help with an assignment

    Do you have own idea about how to do it?
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    newarcher is offline Member
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0

    Default Re: I need help with an assignment

    Yes.
    I am thinking of making 3 classes. One called bank(from where I want to be able to admin everythin), one called client and one called account.

  4. #4
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: I need help with an assignment

    Oh This is first your step. It is good. Then what will you do?
    Skype: petrarsentev
    http://TrackStudio.com

  5. #5
    newarcher is offline Member
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0

    Default Re: I need help with an assignment

    Now I dont know wheather it would be best to add the funtionallities of adding and removing clients in the clients class or in the bank class. If i add them in the client class then I will link to that functionallity in bank.
    Sorry that I do not use the right terms. I dont know them inside out yet, but you can however use them, and I will look them up.

  6. #6
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: I need help with an assignment

    Next step You need determine where you will store users accounts. What do you think about it?
    Skype: petrarsentev
    http://TrackStudio.com

  7. #7
    newarcher is offline Member
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0

    Default Re: I need help with an assignment

    I would store them in the class Account. Maybe using ArrayList?

  8. #8
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: I need help with an assignment

    Yes It is right way. Then You can try to write some pseudo code and show us your result.
    Skype: petrarsentev
    http://TrackStudio.com

  9. #9
    newarcher is offline Member
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0

    Default Re: I need help with an assignment

    Now I have made the possibility to add and remove both clients and account. However I cant to it through the bank yet. How do I link so that I can to everything from the bank?

  10. #10
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: I need help with an assignment

    Oh What do you mean about the bank?
    Skype: petrarsentev
    http://TrackStudio.com

  11. #11
    newarcher is offline Member
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0

    Default Re: I need help with an assignment

    This is a scheme of how i want the program to be structured. And I want to be able to add/remove account and clients through the bank without directly accesing the client and account class.
    I need help with an assignment-overview.png

    And I really dont know how to add the possibility to deposit and withdraw money to a certain account.

  12. #12
    newarcher is offline Member
    Join Date
    Sep 2011
    Posts
    7
    Rep Power
    0

    Default Re: I need help with an assignment

    I am getting this error now when trying to implement the funtions from the class to the right(Client), to the class to the left(Bank).

    http://imageshack.us/photo/my-images/687/erroremd.png/
    Attached Thumbnails Attached Thumbnails I need help with an assignment-error.jpg  
    Last edited by newarcher; 09-07-2011 at 03:53 PM.

  13. #13
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

    Default Re: I need help with an assignment

    Just turn our imagination on. The bank is place where you can save money. It means that this class must make follows operations : create new account, to manager this account (to deposit and withdraw money) and store all data from all exist accounts in the bank.
    Don't show print screen. It has bad information about your code. Show us just code and don't forget to use special tag code for format your code.
    Regard.
    Skype: petrarsentev
    http://TrackStudio.com

Similar Threads

  1. Can somebody help me in this assignment?
    By lulzim in forum New To Java
    Replies: 25
    Last Post: 03-01-2011, 11:02 PM
  2. Need help with a HW assignment
    By mackavelirip in forum New To Java
    Replies: 4
    Last Post: 02-17-2011, 01:36 AM
  3. Help with an assignment
    By aqeel2010 in forum New To Java
    Replies: 5
    Last Post: 01-14-2011, 09:04 AM
  4. Assignment
    By shinkymar in forum New To Java
    Replies: 2
    Last Post: 03-06-2010, 01:17 PM

Posting Permissions

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