a. Write an application that calculates the amount of money earned on an investment, based on an 8% annual return. Prompt the user to enter an investment amount and the number of years for the...

1 answer below »
a. Write an application that calculates the amount of money earned on an investment, based on an 8% annual return. Prompt the user to enter an investment amount and the number of years for the investment. Display an error message if the user enters 0 for either value; otherwise, display the total amount (balance) for each year of the investment. Save the file as Investment.java. b. Modify the Investment application in Exercise 7a so the user also enters the interest rate. In addition to the error message that is displayed when the investment or term is 0, display an error message if the interest rate is 0. Save the file as Investment2.java.

Answered 49 days AfterNov 18, 2021

Answer To: a. Write an application that calculates the amount of money earned on an investment, based on an 8%...

Sathishkumar answered on Jan 06 2022
118 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here