Answer to Question #13784 in C++ for shalennee

Question #13784
(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.
1
Expert's answer
2012-08-30T09:52:53-0400
#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;
}

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 the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS