Answered step by step
Verified Expert Solution
Question
1 Approved Answer
solve it as soon as possible only in java* Create a class named SavingsAccount to represent the Bank account. [6 marks] 1) Add one static
solve it as soon as possible only in java*
Create a class named SavingsAccount to represent the Bank account. [6 marks] 1) Add one static variable called annuallnterestRate to store the annual interest rate ii) Add a private instance variable savings Balance to store the current balance amount in the account I) Provide a method to calculate Monthly interest based on the savings Balance and add the interest to the savings Balance 1) Provide a static method modifyinterestRate that sets the annualInterestRate to a new value V) Write a Test class to test the capabilities of class SavingsAccount. Instantiate two savingsAccount objects, Acc1 and Acc2 with balances of Rs 2000.00 and Rs.3000.00, respectively. Set annuallnterestRate to interest and print the new balances for both AccountsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started