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
Re: Can somebody help me to answer this? Thanks!
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
Re: Can somebody help me to answer this? Thanks!
Quote:
Originally Posted by
minju
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!
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.
Re: Can somebody help me to answer this? Thanks!
Quote:
Originally Posted by
jps
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.
Re: Can somebody help me to answer this? Thanks!
Quote:
Originally Posted by
dshainad
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.
Re: Can somebody help me to answer this? Thanks!
Quote:
Originally Posted by
copeg
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. :(
Re: Can somebody help me to answer this? Thanks!
Quote:
Originally Posted by
dshainad
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:
Quote:
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)