Answered step by step
Verified Expert Solution
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 value. You will
In lab lesson 6 part 2 you calculated the present value. In this lab we are going to be calculating the future value. You 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 Where F is the future value, P is the present value, i is the monthly interest rate and t is 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 you've been doing. When you run the progranm with your IDE you will not be prompted for the input, you will just have to remember to type it in Assuming the following input from cin: -10000 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 142.57 Present Value Monthly Interest 0.99 Months 36 100.00
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