In Progress

Another simple java program

Overall Requirements

Write a program that establishes two savings accounts with saver1 having account number 10002 with an initial balance of $2,000, and saver2 having account 10003 with an initial balance of $3,000. Set a common rate of interest at 5% per year. At the end of each month, update the balance by adding one month’s interest to the balance, so that the balance compounds monthly. Print an output that displays the month number and the account number and the balance for each of the two accounts. Use month 0 to display the initial balances, month 1 to display the balances after the first month’s interest, and so on. At the end of the year, display the total balance for both accounts combined, like this:

Output:

Monthly balances for one year with [url removed, login to view] annual interest:

Month Account # Balance Account # Balance

----- --------- ------- --------- -------

0 10002 [url removed, login to view] 10003 [url removed, login to view]

1 10002 [url removed, login to view] 10003 [url removed, login to view]

2 10002 [url removed, login to view] 10003 [url removed, login to view]

3 10002 [url removed, login to view] 10003 [url removed, login to view]

4 10002 [url removed, login to view] 10003 [url removed, login to view]

5 10002 [url removed, login to view] 10003 [url removed, login to view]

6 10002 [url removed, login to view] 10003 [url removed, login to view]

7 10002 [url removed, login to view] 10003 [url removed, login to view]

8 10002 [url removed, login to view] 10003 [url removed, login to view]

9 10002 [url removed, login to view] 10003 [url removed, login to view]

10 10002 [url removed, login to view] 10003 [url removed, login to view]

11 10002 [url removed, login to view] 10003 [url removed, login to view]

12 10002 [url removed, login to view] 10003 [url removed, login to view]

Final balance of both accounts combined: [url removed, login to view]

Use two classes, a SavingsAccount class and a YourNameProg4 as your Driver class.

[url removed, login to view] class

In the SavingsAccount class, declare a class variable called annualInterestRate, an instance constant called ACCOUNT_NUMBER, and an instance variable called balance. Provide a two-parameter constructor to initialize the instance constant and instance variable, and provide accessors for the instance constant and instance variable. Provide an addMonthlyInterest method to update the balance, by adding (balance * annualInterestRate / 12) to the current balance.

You are also required to provide a class method that sets the annual interest rate.

[url removed, login to view] class

In the YourNameProg4 Driver class, instantiate the saver1 and saver2 objects. Set the annual interest rate at 0.05. Print the table heading lines. Use a for loop to print the initial account numbers and balances and the account numbers and balances each month after that month’s interest has been added. After the last month’s printout, compute and display the total of both balances.

Your driver should generate the following outputs:

Output:

Monthly balances for one year with [url removed, login to view] annual interest:

Month Account # Balance Account # Balance

----- --------- ------- --------- -------

0 10002 [url removed, login to view] 10003 [url removed, login to view]

1 10002 [url removed, login to view] 10003 [url removed, login to view]

2 10002 [url removed, login to view] 10003 [url removed, login to view]

3 10002 [url removed, login to view] 10003 [url removed, login to view]

4 10002 [url removed, login to view] 10003 [url removed, login to view]

5 10002 [url removed, login to view] 10003 [url removed, login to view]

6 10002 [url removed, login to view] 10003 [url removed, login to view]

7 10002 [url removed, login to view] 10003 [url removed, login to view]

8 10002 [url removed, login to view] 10003 [url removed, login to view]

9 10002 [url removed, login to view] 10003 [url removed, login to view]

10 10002 [url removed, login to view] 10003 [url removed, login to view]

11 10002 [url removed, login to view] 10003 [url removed, login to view]

12 10002 [url removed, login to view] 10003 [url removed, login to view]

Final balance of both accounts combined: [url removed, login to view]

Skills: Java

See more: savingsaccount java, set initial balance java, savings account java program, common current, savings interest java program, annual interest java, account balances java program, java savings account program, java account program, java yournameprog4, loop savings account java, java savings account simple, simple account, program output, java program simple, java account, table heading, per program, loop table, 3000 monthly, balance update, java program savings account, simple write, java initial, driver program

About the Employer:
( 6 reviews ) Monument, United States

Project ID: #548848

Awarded to:

is00hcw

Hi, I am interested in your project.

$30 USD in 0 days
(46 Reviews)
5.3

7 freelancers are bidding on average $66 for this job

interpb

Hey pls check PMB Thanks

$30 USD in 0 days
(54 Reviews)
6.1
gafmxq

So easy a project for me, I can complete it in 3 hours.

$30 USD in 0 days
(10 Reviews)
4.4
qzbiz

Let me know when to start.

$30 USD in 1 day
(1 Review)
0.0
PrashanthSharma1

Please provide me details of the project. I would like to start on it at the earliest!

$250 USD in 7 days
(0 Reviews)
0.0
rajneeshag

Hi, I will do it very quickly. Lets start.

$40 USD in 0 days
(0 Reviews)
2.0
jlgopalakrishna

hi friend, I will do you best code in java. I have more experience ij accounts software. it very simple. Thanks & Regads

$55 USD in 15 days
(0 Reviews)
0.0