#include #include //for the "i/o manipulators" setw and setprecision #include using namespace std; //Interest is 6% annually. int main() { double principal {1000.00}; //start with this many dollars cout << "year principal\n" //column headings << "---- ---------\n"; for (int year {1}; year <= 10; ++year) { principal *= 1.06; //means principal = principal * 1.06 cout << setw(4) << year << " $" << fixed << setprecision(2) << principal << "\n"; } return EXIT_SUCCESS; }