Question: Java Calculate how long it takes to reach 1,000,000 dollars , with the input of i goal amount of money and the interest rate you
Problem 3: An Interesting Problem number of years that les than s bo account balance to reach $1, 000,000. You can assumethat the nta Wite a program that accepts two positive integers: a deposited amount of money and an interest rate, as an annual percentage rate. Your program will calculate the number of s will take for the less than $1,000,000 Input The input will begin with a remaining lines contain the lines to be calculated. Each of these lines has two positive integers single line containing T. the number of test cases to follow. The separated by a single space. The first value is the deposited amount, the rate. second is the interest Output The output should consist of the number of years. Sample Input Sample output 2 10000 10 500 5 49 years 156 years
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
