Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Java IDE like Eclipse write this program for windows user the outcome of the program should look like this: 1. Create class Savings Account
Using Java IDE like Eclipse write this program for windows user
1. Create class Savings Account a. Use the private variable annualInterestRate to store the annual interest rate b. Use the private variable savingsBalance to store the amount the saver currently has on deposit c. The constructor should accept the balance and assign it to savings Balance. d. Provide void method calculateMonthlyInterest to calculate the monthly interest i. Multiplying the savingsBalance by annualInterestRate divided by 12 ii. This interest should be added to savings Balance. e. Provide void method modifyInterestRate i. Accepts a new interest rate ii. Assigns the new interest rate to annualInterestRate f. Provide the method get SavingsBalance which returns the savingsBalance 2. Write a driver class (with main method) to test class SavingsAccount a. Provide void method displayBalance that i. Accepts the saver's number and savings account balance ii. Print the new balances for both savers. 1. Display the balance as currency (you can use the Number Format object to pass the formatted balance) 2. Identify which balance belongs to which saver. b. Instantiate two savingsAccount objects, saverl and saver2, with balances of $2000.00 and $3000.00, respectively. c. For each saver, i. Set each saver's annualInterestRate to 4% using the modifyInterestRate method ii. Use a for loop to calculate the monthly interest for each of 12 months by using the calculateMonthlyInterest method for each of the savers. iii. Use the displayBalance method to display each saver's balance d. For each saver, i. set the annualInterestRate to 5% ii. Calculate the next month's interest (just 1 month) iii. Use the displayBalance method to display each saver's balance 1 D For example, your output could look like this an. C:\Windows\system32\cmd.exe The 4% interest balance after 12 months is... Saver 1 balance = $2,081.48 Saver 2 balance = $3,122.22 The 5% interest balance after the next month is... Saver 1 balance - $2,090.16 Saver 2 balance = $3,135.23 Press any key to continue the outcome of the program should look like this:
Step 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