**Here is the problem:**

In 1624, Peter Minuit bought Manhattan island for the amount of $24.00. Had the locals invested that money in the bank at 3.75% interest, what would their investment be worth today? Make the output of this program look like this:

Manhattan Island Interest Calculation___________________Page 1

Year____________Interest Earned_______________Total

1625____________xxx.xx______________________xxx.xx

1626____________xxx.xx______________________xxx.xx

1627____________xxx.xx______________________xxx.xx

1628____________xxx.xx______________________xxx.xx

1629____________xxx.xx______________________xxx.xx

1630____________xxx.xx______________________xxx.xx

and so on. After every five years of output, skip a blank line. After 15 years of output, display a message that says, "Press a key to continue" and then clear the screen and start displaying. Make sure you count the page numbers. Also, on the line when the total first goes over 1000000, display asterisks (***) beside the year.

**Here is my code so far:**

#include <iostream> using namespace std; void year_array(int [],int); void interest_array(int [], int); void total_array(int[], int); void print_array(int [], int [], int[], int); int main() { int year[15]; int interest[15]; int total[15]; int n=15; year_array(year,n); interest_array(interest,n); total_array(total,n); print_array(year,interest,total,n); return 0; } void year_array(int year[],int n) { for(int x=0; x<0; x++) { year[x]; } } void interest_array(int interest[],int n) { for(int y=0; y<n; y++) { interest[y]; } } void total_array(int total[],int n) { for(int z=0; z<n; z++) { total[z]; } } void print_array(int year[], int interest[], int total[], int n) { cout<<"Year"<<"\t"<<"Interest Earned"<<"\t"<<"Total"<<"\n"; for(int a=0, b=0, c=0; a<n; a++, b++, c++) { cout<<year[a]<<"\t"; cout<<interest[b]<<"\t"; cout<<total[c]<<"\n"; } }

I was also really confused on the second part of the problem that says to skip a line every five years, and keep going until their is 15 years. Then clear the screen and continue displaying for the next 15 years. I'm guessing every 15 years when you clear the screen it counts for a page? The page counter and asterisks have me kind of confused as well how to do them, the asterisks displaying beside the year that the total reaches over 1000000 especially.

I've worked with arrays before and also have looked through a lot of tutorials and threads trying to figure out a way to do the first part and couple it with the second part but I think I'm having a brain overload and am over thinking it or something. This is the hardest project I've done and is a lot harder than anything else I have ever tried so it's really giving me fits.

I would greatly appreciate it if someone else would take a look at it and let me know what their take on it is or what they think is wanted from the problem. I've just come to a mental brick wall and can't figure out where to go from here.

Any help would be greatly appreciated.

Thanks!

This post has been edited by **Chevrolet Fanatic**: 06 April 2008 - 09:55 PM