a. Write an application that prompts a user for the number of years the user has until

Question:

a. Write an application that prompts a user for the number of years the user has until retirement and the amount of money the user can save annually. If the user enters 0 or a negative number for either value, reprompt the user until valid entries are made. Assume that no interest is earned on the money.
Display the amount of money the user will have at retirement. Save the file as RetirementGoal.java.
b. Modify the RetirementGoal application to display the amount of money the user will have if the user earns 4% interest on the balance every year. Save the file as RetirementGoal2.java.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: