Morty decided to save early and start a compound interest saving account. Create compound
interest* calculation Java class to help Morty determine the total amount in his account given
an original deposit amount (P), an annual interest rate (R), and time in years (T), assuming
interest will be compounded quarterly†.
Requirements:
1. Create and execute your program using IntelliJ IDEA.
2. Name your Java class LastnameFirstnameA1 (replace LastnameFirstname with your name).
3. Pass P, R, T as command-line arguments.
java LastnameFirstnameA1 4000 6 5 //in terminal
4. The following usage should be displayed if arguments are missing or invalid arguments are
passed to the program.
Usage: java LastnameFirstnameA1 original_deposit_amount annual_interest_rate
time_in_years
5. Your output should be like the following test samples.
Sample Test Cases:
Test Case 1 – java LastnameFirstnameA1 4000 6 5
Output –
There will be $5387.42 in the account if deposit $4000 with 6% interest rate
after 5 years.
Program Completed
6. The program should always print ‘Program Completed’ before exiting.