Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
the outcome of the program should look like this:
image text in transcribed
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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions

Question

How do they look and behave?

Answered: 1 week ago