Question

Visual C# Create Present Value application Application that lets you deposit a certain amount of money...

Visual C#

Create Present Value application

Application that lets you deposit a certain amount of money into a savings account and then leave it alone to draw interest for the next 10 years. At the end of 10 years you would like to have $10,000 in the account. How much do you need to deposit today to make that happen? You can use the following present-value formula, to find out. P =F/(1+r)^n

P is the present value, or the amount that you need to deposit today.

F is the future value, that you want in the account. (In this case, F is $10,000.)

r is the annual interest rate.

n is the number of years that you plan to let the money sit in the account.

Write a method named PresentValue that performs this calculation. The method should accept the future value, annual interest rate, and number of years as arguments. It should return the present value, which is the amount that you need to deposit today. Demonstrate the method in an application that lets the user experiment with different values for the formula's terms

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code

class Present_Value
{
static void Main(string[] args)
{
int n = 10;
double r=0.10;
double f = 10000,p;

p = PresentValue(f, r, n);

Console.WriteLine("If you want "+f.ToString("C")+" after "+n+" years "+" at aintrest rate of "+r.ToString("P")+".");
Console.WriteLine("The you need have deposite " + p.ToString("C"));
}

private static double PresentValue(double f, double r, int n)
{
double p;
p = (f / Math.Pow((1+r), n));
return p;
}
}

output

If you have any query regarding the code please ask me in the comment i am here for help you. Please do not direct thumbs down just ask if you have any query. And if you like my work then please appreciates with up vote. Thank You.

Add a comment
Know the answer?
Add Answer to:
Visual C# Create Present Value application Application that lets you deposit a certain amount of money...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • P5.3      Present Value. Suppose you want to deposit a certain amount of money into a savings...

    P5.3      Present Value. Suppose you want to deposit a certain amount of money into a savings account and then leave it alone to draw interest for the next 10 years. At the end of 10 years you would like to have $10,000 in the account. How much do you need to deposit today tomake that happen? You can use the following formula, which is known as the present value formula, to find out: P = F/(1+r)^n The terms in the...

  • Suppose you want to deposit a certain amount of money into a savings account and then...

    Suppose you want to deposit a certain amount of money into a savings account and then leave it alone to draw interest for the next 10 years. At the end of 10 years you would like to have $10,000 in the account. How much do you need to deposit today make that happen? You can use the following formula, which is known as the present value formula, to find out:                                    P = F / (1+ r)^n The terms in...

  • Write a program that calculates the amount of money that you must invest In a savings...

    Write a program that calculates the amount of money that you must invest In a savings account at a given interest rate for a given number of years to have a certain dollar amount at me end of the period Y our program will ask the user for the amount the user wants to have at the end of the term (future value). the number of years the user plans to let the money stay in the account, and the...

  • Find the present value What present value amount do you need to deposit in a bank...

    Find the present value What present value amount do you need to deposit in a bank account with 2.00% annual interest rate to have $100,000.00 at the end of 20 years?  

  • Time Value of Money... More Practice 1. Calculate the amount that a person would have to...

    Time Value of Money... More Practice 1. Calculate the amount that a person would have to deposit today at 4% now. would have to deposit today at 4% interest to have $10,000 20 years from Is this a present value or future value problem? Is it an annuity or single amount 2. Calculate the amount that a person would have to deposit today at 10% interest in order to have $55,000 15 years from now. Is this a present value...

  • Suppose you have a certain amount of money in a savings account that earns compound monthly...

    Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate the amount that you will have after a specific number of months. The formula is as follows: f = p * (1 + i)^t • f is the future value of the account after the specified time period. • p is the present value of the account. • i is the monthly interest rate. • t is the...

  • Time value Personal Finance Problem You can deposit $10,000 into an account paying 13% annual interest...

    Time value Personal Finance Problem You can deposit $10,000 into an account paying 13% annual interest either today or exactly 5 years from today. How much better off will you be at the end of 30 years if you decide to make the initial deposit today rather than 5 years from today? The future value at the end of 30 years if you deposit $10,000 at 13% today is (Round to the nearest dollar.) The future value at the end...

  • The following situations require the application of the time value of money: Use the appropriate present...

    The following situations require the application of the time value of money: Use the appropriate present or future value table: FV of $1, PV of $1, FV of Annuity of $1 and PV of Annuity of $1 1. On January 1, 2017, $16,000 is deposited. Assuming an 8% interest rate, calculate the amount accumulated on January 1, 2022, if interest is compounded (a) annually, (b) semiannually, and (c) quarterly. Round your answers to the nearest dollar. Future Value a. Annual...

  • Time value Personal Finance Problem You can deposit $10,000 into an account paying 6% annual interest...

    Time value Personal Finance Problem You can deposit $10,000 into an account paying 6% annual interest either today or exactly 5 years from today. How much better off will you be 40 years from now if you decide to make the initial deposit today rather than 5 years from today? The future value at the end of 40 years if you deposit $10,000 at 6% today is (Round to the nearest dollar) The future value at the end of 40...

  • Preb01 Click here to read the eBook: Future Values FUTURE VALUE - If you deposit $8,000...

    Preb01 Click here to read the eBook: Future Values FUTURE VALUE - If you deposit $8,000 in a bank account that pays 8% Interest annually, how much will be in your account after 5 years? Round your answer to the nearest cent. OOOOO o Click here to read the eBook: Present Values o Problem Walk-Through O PRESENT VALUE What is the present value of a security that will pay $22,000 in 20 years if securities of equal risk pay 3%...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT