Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ coding ***The outputs produced must look exactly like the ones shown*** In lab lesson 8 part 2 you calculated the present value. In this

C++ codingimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed ***The outputs produced must look exactly like the ones shown***

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 +i 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)At) 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 places. Any error messages will be written to cout. You will also be writing out to a file called output.xls The first thing you will write out are four "headings' separated by tabs (using the It escape sequence) Here is an output statement (this example is using cout). Your program will instead write to the output file cout.

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

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

Which personal relationships influenced you the most?

Answered: 1 week ago

Question

What were your most important educational experiences?

Answered: 1 week ago