Question: We are going to design a simple banking simulation using a SavingsAccount class. For this task you have to do the followings: 1 . Design
We are going to design a simple banking simulation using a SavingsAccount class. For this task you have to do the followings: Design a SavingsAccount class that stores a savings accounts annual interest rate and balance. The class constructor should accept the amount of the savings accounts starting balance. The class should also have methods for subtracting the amount of a withdrawal, adding the amount of a deposit, and adding the amount of monthly interest to the balance. The monthly interest rate is the annual interest rate divided by twelve. To add the monthly interest to the balance, multiply the monthly interest rate by the balance, and add the result to the balance. Test the class in a program that
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
