63 109
Assignments Done
99%
Successfully Done
In July 2018

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.
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions