Question: I am working on a simple Java program that asks the following: Create a project that asks the user how much money they will deposit

I am working on a simple Java program that asks the following:

Create a project that asks the user how much money they will deposit and what interest rate they choose. In the program, use a loop to calculate the growth in the account balance, and keep track of the number of iterations. When the balance is at least $1,000,000, end the loop and print out how many cycles it took to reach that sum. Include a message about how many cycles it takes to reach the sum of $100,000 as well. This message should only print once, not every time the account balance is greater than $100,000. (Hint: use a Boolean variable to determine if you are still searching for that balance or have already found it and printed the message.)

Any advise on how to work this? Thanks.

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!