Find Jobs
Hire Freelancers

Savings Program

$30-250 USD

Slutfört
Publicerad över elva år sedan

$30-250 USD

Betalning vid leverans
The file must be called (driver program) [login to view URL] (handles interest and balance calculations) Ensure you include ALL files required to make program compile and run. 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 0.05 annual interest: Month Account # Balance Account # Balance ----- --------- ------- --------- ------- 0 10002 2000.00 10003 3000.00 1 10002 2008.33 10003 3012.50 2 10002 2016.70 10003 3025.05 3 10002 2025.10 10003 3037.66 4 10002 2033.54 10003 3050.31 5 10002 2042.02 10003 3063.02 6 10002 2050.52 10003 3075.79 7 10002 2059.07 10003 3088.60 8 10002 2067.65 10003 3101.47 9 10002 2076.26 10003 3114.39 10 10002 2084.91 10003 3127.37 11 10002 2093.60 10003 3140.40 12 10002 2102.32 10003 3153.49 Final balance of both accounts combined: 5255.81 Use two classes, a SavingsAccount class and a RobertWiddossProg4 as your Driver class. [login to view URL] 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. [login to view URL] class In the RobertWiddossProg4 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 0.05 annual interest: Month Account # Balance Account # Balance ----- --------- ------- --------- ------- 0 10002 2000.00 10003 3000.00 1 10002 2008.33 10003 3012.50 2 10002 2016.70 10003 3025.05 3 10002 2025.10 10003 3037.66 4 10002 2033.54 10003 3050.31 5 10002 2042.02 10003 3063.02 6 10002 2050.52 10003 3075.79 7 10002 2059.07 10003 3088.60 8 10002 2067.65 10003 3101.47 9 10002 2076.26 10003 3114.39 10 10002 2084.91 10003 3127.37 11 10002 2093.60 10003 3140.40 12 10002 2102.32 10003 3153.49 Final balance of both accounts combined: 5255.81
Project ID: 2645377

Om projektet

19 anbud
Distansprojekt
Senaste aktivitet tolv år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
Hi, I would like to do this project.
$30 USD Om 0 dag
5,0 (1093 omdömen)
7,7
7,7
19 frilansar lägger i genomsnitt anbud på $40 USD för detta uppdrag
Använd avatar
Please check INBOX
$30 USD Om 0 dag
4,8 (441 omdömen)
7,5
7,5
Använd avatar
Simple project to me, please check your pm.
$30 USD Om 1 dag
4,9 (56 omdömen)
6,2
6,2
Använd avatar
I can help You
$30 USD Om 1 dag
5,0 (77 omdömen)
5,8
5,8
Använd avatar
Ready to do it. Thanks.
$30 USD Om 0 dag
4,9 (78 omdömen)
4,6
4,6
Använd avatar
Hi, I am a graduate in CS and working as a Java programmer for 2+ years. I have done lots of similar project both in academic courses and in freelancer.com .I assure you of clean, efficient, optimized code with proper documentation. best regards, Rakib
$50 USD Om 1 dag
4,8 (27 omdömen)
4,9
4,9
Använd avatar
Hi i can do it for u . please check Ur pm.
$30 USD Om 0 dag
4,9 (17 omdömen)
4,2
4,2
Använd avatar
Please check your personal message box I have the project done.
$30 USD Om 0 dag
5,0 (5 omdömen)
3,3
3,3
Använd avatar
Hi I am a Java J2EE expert and I would love to help you with the solution. Please check PMB. Thanks
$30 USD Om 0 dag
5,0 (6 omdömen)
3,3
3,3
Använd avatar
I can complete this for you.
$30 USD Om 1 dag
5,0 (4 omdömen)
2,5
2,5
Använd avatar
please consider our bid
$30 USD Om 0 dag
4,7 (9 omdömen)
2,7
2,7
Använd avatar
I have completed this easy project for you. Please see your message box. Thank you.
$30 USD Om 1 dag
5,0 (2 omdömen)
2,4
2,4
Använd avatar
Hi, I'm ready to work. will start right the way. Please kindly check your PM.
$30 USD Om 0 dag
5,0 (3 omdömen)
2,1
2,1
Använd avatar
Hello I can do this project no problem. I just had Java II last semester and one of our assignments was almost identical. I already have the account classes written and commented with UML diagrams.
$30 USD Om 2 dagar
5,0 (2 omdömen)
1,3
1,3
Använd avatar
i can do it , i am ready to work
$30 USD Om 0 dag
0,0 (0 omdömen)
0,0
0,0
Använd avatar
Ready to do it! Thanks!
$30 USD Om 1 dag
0,0 (0 omdömen)
0,0
0,0
Använd avatar
Easy task ,, will completed in one day
$30 USD Om 1 dag
0,0 (0 omdömen)
0,0
0,0
Använd avatar
Hi I have read your requirements. I can do your java projects in no time. Our experts are waiting. Thanks.
$200 USD Om 10 dagar
0,0 (0 omdömen)
0,0
0,0
Använd avatar
This is very easy job. I have done these types of assignments several times. I can do this within few hours. thnx
$30 USD Om 1 dag
0,0 (0 omdömen)
0,0
0,0

Om kunden

Flagga för UNITED STATES
San Antonio, United States
5,0
9
Verifierad betalningsmetod
Medlem sedan okt. 4, 2012

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.