how to write code in java Create a program called Account Value. This will display the growth
Fantastic news! We've Found the answer you've been seeking!
Question:
how to write code in java
Transcribed Image Text:
Create a program called Account Value. This will display the growth in value of an amount with a fixed interest rate over a number of months. The program needs the monthly saving amount, the annual interest rate in percent, and the number of months. The monthly interest rate is calculated once and is calculated as interestRate/12. Suppose you save $100 each month into an account with the annual interest rate 5%. So the monthly interest rate is 0.05/12 = 0.00417. After the first month the value in the account becomes 100 (1+0.00417) = 100.417 After the second month, the value in the account becomes (100+ 100.417) * (1 + 0.00417) = 201.252 and so on The program must be able to calculate the value of amount after a specified number of months have passed. This calculation must be a separate method so it can be called separately from the print method below. The program must also be able to print all the data about the amount in the account including a table showing the value of the amount for each month of the year. Create a program called Account Value. This will display the growth in value of an amount with a fixed interest rate over a number of months. The program needs the monthly saving amount, the annual interest rate in percent, and the number of months. The monthly interest rate is calculated once and is calculated as interestRate/12. Suppose you save $100 each month into an account with the annual interest rate 5%. So the monthly interest rate is 0.05/12 = 0.00417. After the first month the value in the account becomes 100 (1+0.00417) = 100.417 After the second month, the value in the account becomes (100+ 100.417) * (1 + 0.00417) = 201.252 and so on The program must be able to calculate the value of amount after a specified number of months have passed. This calculation must be a separate method so it can be called separately from the print method below. The program must also be able to print all the data about the amount in the account including a table showing the value of the amount for each month of the year.
Expert Answer:
Answer rating: 100% (QA)
import javautil import javaio public class Main public double amount public void setValuedouble amou... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Create a program called Fraction Class is the definition for a Fraction object. Classes contain Attributes (the data) and Behaviors (the methods). The Fraction Attributes A fraction is an object that...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
The MLC Corporation produces electronic microwave ovens and uses a perpetual inventory system. Its job costing records yield the following information. Job No. 1 m 2 3 4 *5 6 7 Date Finished Sold...
-
Suppose it is an election year and aggregate demand is growing so fast that it threatens to set off an inflationary movement. Why might Congress and the president hesitate to cut back on government...
-
Solve, finding all solutions. Express the solutions in both radians and degrees. sin x 2 2
-
Maribel Baltazar was hired by clothing retail merchandiser Forever 21 in 2007. During the hiring process, Baltazar was given an 11-page document to sign, two pages of which contained an arbitration...
-
The 2012 comparative balance sheet and income statement of Rolling Hills, Inc., follow: Additionally, Rolling Hills purchased land of $23,600 by financing it 100% with long-term notes payable during...
-
Explain the types of anomalies that might occur on this relational model when not normaliz ed NORMALIZATION (40 Points) Consider a COLLEGE logical relational model below....
-
Are these system specifications consistent? "Whenever the system software is being upgraded, users cannot access the file system. If users can access the file system, then they can save new files. If...
-
SmartiePants Corp., has reason to believe the shares of Groot Inc. is about to hit an all time low. After consulting their accounting team and a reputable analyst, they are forecasting a significant...
-
For the simplex tableau X2 $1 52 P RHS 4 1 0 0 29 3 0 1 0 50 -4 0 01 0 perform one pivot operation and enter the resulting tableau below. The pivot element has a box around it. X X2 X 3 3 -10 $2 P RHS
-
Discuss some of the key principles of Quantum Physics, such as Heisenberg's Uncertainty principle, the concept of superposition, and the phenomenon of quantum tunneling. Question 4. Application of...
-
Define and explain the formation of polar and non-polar covalent bonds. State and discuss the cause of their similarities and differences. Use the case of water and hydrocarbons as the basis for your...
-
YAG laser operates at approximately 1.06 m wavelength and has gain with spectral width = 150 GHz. a) For a simple air-filled resonator based on parallel-plane mirrors spaced by 10 cm, how many...
-
What process does the "GU-AG Rule" apply to in eukaryotes. If the AG sequence was mutated in exon 1 in a gene with 3 exons, how would this process be affected?
-
Find the particular solution of the equation y" + 4y' + 5y = 0 y(0) = -3, y'(0) = 0 %3D
-
Define deferred revenue. Why is it a liability?
-
Consider the following investment cash flows over a two-year life: (a) Compute the mean and variance of PW of this project at i = 10% if 1. A1 and A2 are mutually independent. 2. A1 and A2 are...
-
The Johnson Chemical Company has just received a special subcontracting job from one of its clients. The two-year project requires the purchase of a special-purpose painting sprayer of $60,000. This...
-
If a dump truck for hauling coal has an estimated net cost of $90,000 and is expected to give service for 250,000 miles, resulting in a salvage value of $5,000, what would be the depreciation per...
-
In an efficient market, the change in a companys share price is most likely the result of: A. Insiders private information. B. The previous days change in stock price. C. New information coming into...
-
Regulation that restricts some investors from participating in a market will most likely: A. Impede market efficiency. B. Not affect market efficiency. C. Contribute to market efficiency.
-
Which of the following regulations will most likely contribute to market efficiency? Regulatory restrictions on: A. Short selling. B. Foreign traders. C. Insiders trading with nonpublic information.
Study smarter with the SolutionInn App