(Financial application: computing future tuition) Suppose that the tuition for a university is $10,000 this year and increase 5% every year. Write a program that computes the tuition in ten years and the total cost of four years' worth of tuition starting ten years from now.
#include <iostream>
#include <conio.h>
#include
<math.h>
using namespace std;
int main ()
{
double
tuition = (10000);
int year = 1;
for (int i = 1; i <= 10;
i++)
{
tuition = ((tuition * .05) + tuition);
}
cout <<
"Tuition after 10 years is: " << tuition <<
endl;
getch();
return 0;
}