67 107
Assignments Done
99,3%
Successfully Done
In November 2018

Answer to Question #57942 in C++ for syed

Question #57942
According to legend, the island of Manhattan was purchased from the native
Indian population in 1626 for $24. Assuming this money was invested in a Dutch bank paying
4% simple interest per year, construct a table showing how much money the native population
would have at the end of each 50-year period, starting in 1626 and ending 400 years later. Use
the relationship that the money available at the end of each 50-year period = the amount of
money in the account at the start of period × the quantity (1 + .04)50.
Expert's answer
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
double s=24;
double p=0.04;
for(int i=0;i<=400;i+=50)
{
cout<<(i+1626)<<":\t"<<fixed<<setprecision(2)<<s<<endl;
s=s*(1+p)*50;
}

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions