Question: Code in MATLAB Using a while-loop, determine the how many years are required for tuition to double if it increases by some percentage, r, every
Using a while-loop, determine the how many years are required for tuition to double if it increases by some percentage, r, every year. Read in both the tuition and the rate and for each year, output the tuition until the tuition is double its original value. If tuition is $3000 and it increases by 10% annually (i.e., 0.10), then you should output the following Year 1 Tuition: $3000.00 Year 2 Tuition: $3300.00 Year 3 Tuition: $3630.00 Year 4 Tuition: $3993.00 Year 5 Tuition: $4392.30 Year 6 Tuition: $4831.53 Year 7 Tuition: $5314.68 Year 8 Tuition: $5846.15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
