Create an application calculates the amount of money


Discuss the below:

Q1. 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.

Q2. Modify the Investment application in a 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.

 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create an application calculates the amount of money
Reference No:- TGS01934405

Now Priced at $25 (50% Discount)

Recommended (93%)

Rated (4.5/5)