Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed 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 calculations

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

In Problem 1, what was the dividend yield? The capital gains yield?

Answered: 1 week ago