Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help! Lab 2A Practice with Computer Math I) An annuity (sometimes called a reverse mortgage) is an account that yields a fixed payment every year
Help!
Lab 2A Practice with Computer Math I) An annuity (sometimes called a reverse mortgage) is an account that yields a fixed payment every year until it is depleted. Typically, one makes a one-time deposit which then earns interest for a set number of years. Afterwards, a fixed amount is withdrawn (paid out) for a set number o fyears. The initial deposit, called 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 presentValue-payment(( (1 + i)n-1-1)/i)/( (1 + i)"-1 + 1) where periodic payment periodic interest or compound rate number of payments payment 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 PresentValueCalculator class to calculate the present value of an annuity for these values. Choose the appropriate date type for payment, i and n. Remember that you can use Math.pow (x, y) to calculate. What is your program? public class PresentValueCalculator public static void main(Stringl] args) 2) Modify the program you created so that the user can provide the values for for payment, i and n through the console. Be sure to prompt the user for the appropriate input. The Scanner class has methods nextlnt and nextDouble methods for converting user input to binary values for calculationsStep 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