Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In lab lesson 6 part 2 you calculated the present value. In this lab we are going to be calculating the future valueYou will need

image text in transcribedimage text in transcribedimage text in transcribed

In lab lesson 6 part 2 you calculated the present value. In this lab we are going to be calculating the future valueYou will need to read in the present value, the monthly interest rate and the number of months for the investment. The formula is going to compute compounded interest (by month). There are a number of required functions that you will be writing, so do not start programming before you have read all of the instructions Here is the formula: F= P* (1 +i) Where F is the future value, P is the present value, i is the monthly interest rate and tis the number of months. Your program will need to make sure of better variable names that those used above. Your program will read the present value, monthly interest rate, and the number of months from cin. The output from the program will be written to cout. The numbers read in must be positive values greater than 0. If they are not you need to output the three read in values to cout and display an error message saying the values are not all greater than 0. Note that all double values should be output in fixed format with two digits to the right of the decimal point. This is true for all double output to cout. Also notice that there are no prompts for the input. This is different from other lab lessons youve been doing. When you run the program with your IDE you will not be prompted for the inputyou will just have to remember to type it in. Assuming the following input from cin 10000 1.1 48 The following would be written to cout 10000.00 1.10 48 One or more of the above values are not greater than zero If the values are all valid: 100 0.99 36 The output will be: Future value Present Value Monthly Interest Months 100.00 0.99 36 142

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

Step: 3

blur-text-image

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

Prepare a system flowchart of the process described.

Answered: 1 week ago

Question

4. Not sure? Ask them.

Answered: 1 week ago

Question

Q.1. Health issues caused by adulteration data ?

Answered: 1 week ago

Question

1. Traditional and modern methods of preserving food Articles ?

Answered: 1 week ago

Question

What is sociology and its nature ?

Answered: 1 week ago

Question

What is liquidation ?

Answered: 1 week ago