Suppose that the tuition for a university is $ 10,000 this year and increases 5% every year. Write a program that uses a loop to compute the tuition in ten years. Write another program that computes the total cost of four years worth of tuition starting 18years from now.
I am able to do the 10 year loop without much problem.
However when come to calculating 2nd part of the question i came to a halt.
Should i be doing a loop again till the 21 years and then total tuition of 18 to 21 years?
or can i call the 18th year and start the loop there to 21 years(my preference)
***i just need hints*** No code pls.Prefer to solve it on my own.