Question: WHILE-LOOP: 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

 WHILE-LOOP: Using a while-loop, determine the how many years are required

WHILE-LOOP: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!