Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

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 After Nov 18, 2021

Solution

Sathishkumar answered on Jan 06 2022
119 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