Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: Can somebody help me to answer this? Thanks!

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can somebody help me to answer this? Thanks!

    Design class BankAccount that has attributes accountNumber, amountDeposited and amountWidthrew. It has its own methods computeInterest(), displayBalance(), withdrawMoney() and depositMoney().
    Impose a 0.5% interest on balance. Create a separate class MainBank that will manipulate/ display its values:

    Sample Input/Output:

    Enter money to deposit: 1000.0
    Enter money to widthraw: 0.0

    Previous balance is 1,000.0
    Interest is 5.0
    New balance is 1,005.0


  2. #2
    Junior Member
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    20
    My Mood
    Bored
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: Can somebody help me to answer this? Thanks!

    What is your question?

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Can somebody help me to answer this? Thanks!

    You have posted a homework assignment, but nothing else. Please show what you have done and ask a specific question. See the link in my signature entitled "Getting Help", as well as http://www.javaprogrammingforums.com...e-posting.html

  4. #4
    Junior Member
    Join Date
    Nov 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Can somebody help me to answer this? Thanks!

    Quote Originally Posted by minju View Post
    What is your question?
    GRAPHICAL USER INTERFACE AND OBJECT - ORIENTED DESIGN

    Design class BankAccount that has attributes accountNumber, amountDeposited and amountWidthrew. It has its own methods computeInterest(), displayBalance(), withdrawMoney() and depositMoney().
    Impose a 0.5% interest on balance. Create a separate class MainBank that will manipulate/ display its values:

    Sample Input/Output:

    Enter money to deposit: 1000.0
    Enter money to widthraw: 0.0

    Previous balance is 1,000.0
    Interest is 5.0
    New balance is 1,005.0

    (You have to make 2 programs, 1st is for the GUI and the 2nd will be for the Sample Output. I hope you can help me. Thanks!

  5. #5
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: Can somebody help me to answer this? Thanks!

    You were asked what your question is, not what your instructors question is. If that is your best question, this is my best answer.

  6. #6
    Junior Member
    Join Date
    Nov 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Can somebody help me to answer this? Thanks!

    Quote Originally Posted by jps View Post
    You were asked what your question is, not what your instructors question is. If that is your best question, this is my best answer.
    There is NO question. You just have to make 2 programs, 1st is for the GUI and the 2nd will be for the Sample Output.

  7. #7
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Can somebody help me to answer this? Thanks!

    Quote Originally Posted by dshainad View Post
    There is NO question. You just have to make 2 programs, 1st is for the GUI and the 2nd will be for the Sample Output.
    You must be mistaking this forum for a code/homework service, which it is not. We do however, help those that have tackled their problems and have specific issues/questions regarding their attempts. So my suggestion is to tackle the problem (see post 3 for information on how to do so), and post specific question you have regarding your code.

  8. #8
    Junior Member
    Join Date
    Nov 2012
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Can somebody help me to answer this? Thanks!

    Quote Originally Posted by copeg View Post
    You must be mistaking this forum for a code/homework service, which it is not. We do however, help those that have tackled their problems and have specific issues/questions regarding their attempts. So my suggestion is to tackle the problem (see post 3 for information on how to do so), and post specific question you have regarding your code.
    do you know some forum with code service? Because I really don't know what to do.

  9. #9
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: Can somebody help me to answer this? Thanks!

    Quote Originally Posted by dshainad View Post
    do you know some forum with code service? Because I really don't know what to do.
    No, because doing so is academic dishonest and any coder I know will not have a hand in that behavior. If you are completely clueless, then I recommend starting with some java tutorials
    The Java™ Tutorials
    Use those tutorials to break the problem down. For instance, the first sentence of your assignment:
    Design class BankAccount
    Do you know what a class is? The above tutorial has quite descriptive explanations and examples.
    Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

Similar Threads

  1. Pls Answer...
    By sachin.garde in forum Exceptions
    Replies: 4
    Last Post: October 31st, 2011, 02:38 AM
  2. What's ur answer?
    By Tanmaysinha in forum The Cafe
    Replies: 6
    Last Post: October 12th, 2011, 06:26 AM
  3. [SOLVED] Answer always false.
    By tyb97 in forum Loops & Control Statements
    Replies: 5
    Last Post: October 7th, 2011, 10:56 AM
  4. need answer for these
    By satishbs in forum Java Theory & Questions
    Replies: 2
    Last Post: April 15th, 2011, 01:46 AM
  5. Does anyone have answer of this Assignment??
    By lulzimfazlija in forum Java Theory & Questions
    Replies: 3
    Last Post: January 21st, 2011, 05:02 AM