The First National Bank of Parkville recently opened up a new “So You Want to Be a Millionaire” savings account. The new account works as follows:
Note: Customers close to $1,000,000 tend to get “accidentally” run over in the bank’s parking lot.
Write a program that prompts the user for a starting balance and then prints the number of www.11ales.to reads $100,000 and the number of years it takes to reach $1,000,000.
Do not forget to use a proper style as your BankBalance.java file (including comments and a purchase section at the top of the file).
Sample session:
Enter starting balance: /0000
It takes 5 years to reach $1,000,000.
It takes 7 years to reach $1,000,000.
Reviews
There are no reviews yet.