The Artima Developer Community
Sponsored Link

Java Answers Forum
can someone do this for me?

6 replies on 1 page. Most recent reply: Mar 6, 2006 1:47 AM by Matthias Neumair

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 6 replies on 1 page
kyle johnson

Posts: 4
Nickname: gh0st501
Registered: Mar, 2006

can someone do this for me? Posted: Mar 2, 2006 12:28 PM
Reply to this message Reply
Advertisement
(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.


Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: can someone do this for me? Posted: Mar 3, 2006 12:44 AM
Reply to this message Reply
No, it's your homework.

kyle johnson

Posts: 4
Nickname: gh0st501
Registered: Mar, 2006

Re: can someone do this for me? Posted: Mar 3, 2006 11:55 AM
Reply to this message Reply
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.

kyle johnson

Posts: 4
Nickname: gh0st501
Registered: Mar, 2006

Re: can someone do this for me? Posted: Mar 3, 2006 12:15 PM
Reply to this message Reply
this program can be done just in the cmd window

Dave Hinton

Posts: 42
Nickname: catbells
Registered: Oct, 2003

Re: can someone do this for me? Posted: Mar 3, 2006 12:18 PM
Reply to this message Reply
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.

kyle johnson

Posts: 4
Nickname: gh0st501
Registered: Mar, 2006

Re: can someone do this for me? Posted: Mar 4, 2006 5:59 AM
Reply to this message Reply
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.

Matthias Neumair

Posts: 660
Nickname: neumi
Registered: Sep, 2003

Re: can someone do this for me? Posted: Mar 6, 2006 1:47 AM
Reply to this message Reply
So ask us some questions!

At what point are you?
Did you create the class?
Did you create the static variable?

You are not the only one with a bad teacher.

I AM willing to help, but I don't do homework for others.

This is a really easy task. The text describes exactly what you have to do.

So first create the class.
Then create the class variable.
.
.
.

Flat View: This topic has 6 replies on 1 page
Topic: confused about writing test driver Previous Topic   Next Topic Topic: PLS HELP -Urgent

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use