(Savings account class) Create a class SavingsAccount. Use a static variable annualInterestRate to store the annual interest rate for all account holders. Each object of the class contains a private instance variable savingsBalance indicating the amount the saver currently has on deposit. Provide method calculateMonthlyInterest to calculate the monthly interest by multiplying the savingsBalance by annualInterestRate divided by 12-this interest should be added to savingsBalance. Provide a static method modifyInterestRate that sets the annualInterestRate to a new value. Write a program to test class SavingsAccount. Instantiate two savingsAccount objects, saver1 and saver2, with balances of $2000.00 and $3000.00, respectively. Set annualInterestRate to 4%, then calculate the monthly interest and print the new balances from both savers. Then set the annualInterestRate to 5%, calculate the next month's interest and print the new balances for both savers.
yea, but i dont know how to do it. our teacher does not teach us at all, we are expected to learn it all on our own and if i dont get this assignment done by sunday i'll fail the class.
If we just give you the answer, you still won’t learn anything.
There are various java tutorials on the web, or you could buy a book to learn from. I learned java from Learning Java, published by O’Reilly, but as I was already an experienced programmer I don’t know whether it would be suitable for someone who is learning to program.
It strikes me that your classmates must be in the same position as you. Talk to them.
yea there are about 3 people in the class who know how to write this program. the problem is that for one in class we are not aloud to exchange information about our programs to one another and then if any of our programs look like they have been plagerized from, we get a 0%. I'll try looking for some tutorials, didnt think of that, thanks.