Question: In C++ Using a while loop, code and run a program that will calculate how long it will take $10,000.00 to become $1,000,000 with 0.08

In C++ Using a while loop, code and run a program that will calculate how long it will take $10,000.00 to become $1,000,000 with 0.08 interest rate. I have the algorithm I am suppose to use for this program and that is...

1) read in amount

2) read in the interest rate

3) while amount is less then 1,000,000

3.1) interest = amount * rate

3.2) amount = amount + interest

3.3) add to year

4) print out " I'm a millionaire in " +year+ "years"

5) stop

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 Mathematics Questions!