Jinhwan -7 Newbie Poster

Create a class named SavingsAccount and provide a method called deposit to allow a customer to deposit to his savings account, another method called withdraw to allow a customer to withdraw from his savings account, ensure that the debit amount does not exceed the savings account balance. If it does, the balance should be left unchanged and the method should print a message "Insufficient funds, available amount is ". Provide another method calculateMonthlyInterest to calculate the monthly interest by multiplying the savings balance by annualInterestRate divided by 12 this interest should be added to savings balance. Provide a static method modifyInterestRate that sets the annualInterestRate to a new value. Use a static variable annualInterestRate to store the annual interest rate for all savings account holders.

The SavingsAccount class will containg the following variables: account number, customer name, phone number, savings balance and annual interest rate.

INPUT

The input contains the account number, customer name, phone number, starting balance, amount to be deposited, annual interest rate and withdrawn amount.

OUTPUT

The new balance after the withdrawn amount followed by new monthly balance after the interest rate is applied.

SAMPLE INPUT
123456
Juan dela Cruz
09202640108
1000.0
1000.0
0.04
0.0

SAMPLE OUTPUT
Deposited 1000.00 new balance is 2000.00
Withdrawed 0.00 new balance is 2000.00
New balance after interest rate is applied 2006.67

JamesCherrill commented: And your question is...? -3
jwenting commented: sounds like an easy thing to do for a school assignment -4