Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The purpose of this assignment is to create a JAVA program with variables, arithmetic operations and input/output. Instructions 1. An annuity (sometimes called a reverse
The purpose of this assignment is to create a JAVA program with variables, arithmetic operations and input/output. Instructions 1. An annuity (sometimes called a reverse mortgage) is an account that yields a fixed payment every year until it is depleted. The present value of the annuity is the amount that you would need to invest at a given interest rate so that the payments can be made. The present value of an annuity (PVann) at the time of the first deposit can be calculated using the following formula: PVann=PMT({[(1+i)(n1)1]/i}/(1+i)(n1)+1) where: PMT: periodic payment i: periodic interest or compound rate n: number of payments 2. What is the present value of an annuity that will pay out $10,000 in each of the next 20 years if the interest rate is 8 percent? Write a program to calcule the present value of an annuity for these values. Remember that you can use Math.pow (x,y) to calculate xy. 3. Now, modify the program you created above so that the user can provide the values for PMT, i, and n through the console. Format the output to two digits after decimal. 4. After that, convert the output to an integer and print it. Make sure you add program comments explaining what does the java statement do. Use /, /, and // types of delimiters at appropriate places
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