Tuesday, July 28, 2009

I try to program in c# but i try to answer this Question but i faile can any one give me some help?

Create class SavingsAccount. Use static variable annualInterestRate to store the 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 driver 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 for each of the savers. Then set the annualInterestRate to 5% and calculate the next month’s interest and print the new balances for each of the savers.

I try to program in c# but i try to answer this Question but i faile can any one give me some help?
don't expect people to do your homework... ask only if you're stuck in a more specific task





you're much better off reading your textbook than taking shortcuts... it'll eventually catch up with you if your don't


No comments:

Post a Comment