Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please and thank you You are to create a program that is a compound interest program. The legend is that Peter Minuit, born in

image text in transcribed

image text in transcribed

C++ please and thank you

You are to create a program that is a compound interest program. The legend is that Peter Minuit, born in Holland in 1580 , purchased the island of Manhattan for $24.00 worth of beads in the year 1626 . This short program will use a for loop to calculate what he would be worth in 2018 if he had invested this amount at a fixed interest rate. Considering that some sources value Manhattan at 169 billion in 2018, what is the lowest interest rate that would be needed to improve upon that figure? The logic of the program is outlined in the comments (pseudocode) given below. 1. Print (cout) the heading: Investment of $24.00 in beads 2. Set the principal invested to 24.00. 3. For rates from 1 to 7 do 1. Convert rate by r=100rate 2. Calculate the amount in 2004 by: A=P(1+r)n where A is the amount at the end of n years, n is the number of years, P is the principal invested r is the yearly interest rate as a decimal 4. Print the rate and amount to the output file. Using the pseudocode, supply the appropriate C++ statements to create the program. Write the results to a file. Run the program using yearly interest rate values of 1,2,3,7 percent. Output: \begin{tabular}{ll} & \multicolumn{2}{c}{ Investment of $24.00 in beads } \\ & \multicolumn{1}{c}{ at the rate of } \\ Rate of 1% & Current Value $1032.03 \\ Rate of 2% & Current Value $42763.79 \\ Rate of 3% & Current Value $1708764.37 \\ Rate of 48 & Current Value $65889088.05 \\ Rate of 5% & Current Value $2453388301.80 \\ Rate of 6% & Current Value $88273086435.01 \\ Rate of 7% & Current Value $3070995688511.67 \end{tabular} main.cpp Load default template... 123456789#includeiostreamusingnamespacestd;intmain(){/Typeyourcodehere.*/return0

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

Oracle PL/SQL Programming Database Management Systems

Authors: Steven Feuerstein

1st Edition

978-1565921429

More Books

Students also viewed these Databases questions

Question

Be familiar with the basic ways to manage capacity.

Answered: 1 week ago