Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In lab lesson 8 part 2 you calculated the present value. In this lab we are going to be calculating the future value. You will
In lab lesson 8 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.
5.22 Lab Lesson 9 (Part 2 of 2) Lab lesson 9 has two parts Part 2 be making use of functions, pass by reference, and files. Part 2 is worth 65 points (55 points for passing the tests and 10 for your code). Failure to meet the requirements could result in loss of points beyond the 10 for the code formatting, variable names, and so on. In lab lesson 8 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. You must use function prototypes for all of the functions (except main). 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 Note that the formula above is (1+to the power of t. On some older browsers the superscript for t does not display properly. The above expression can be written as F = P * ( (1 + i) ) Your program will need to make sure of better variable names that those used above The input for the program will be read in from a file. You will read in the file name from cin You will then read in the present value, monthly interest rate, and the number of months from the input file. There may be multiple sets of these values. You need to process them all. The program should end when you reach the end of file on the input file The output from the program will be written to two different placesStep 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