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