Question: In Java, write this code: Growth of $1 Using Compounded Interest Period 5% 6% 7% 8% 9% 10% 1 1.0500000 1.0600000 1.0700000 1.0800000 1.0900000 1.1000000
In Java, write this code:



Growth of $1 Using Compounded Interest Period 5% 6% 7% 8% 9% 10% 1 1.0500000 1.0600000 1.0700000 1.0800000 1.0900000 1.1000000 2 1.1025000 1.1236000 1.1449000 1.1664000 1.1881000 1.2100000 3 1.1576250 1.1910160 1.2250430 1.2597120 1.2950290 1.3310000 4 1.2155063 1.2624770 1.3107960 1.3604890 1.4115816 1.4641000 5 1.2762816 1.3382256 1.4025517 1.4693281 1.5386240 1.6105100 6 1.3400956 1.4185191 1.5007304 1.5868743 1.6771001 1.7715610 7 1.4071004 1.5036303 1.6057815 1.7138243 1.8280391 1.9487171 8 1.4774554 1.5938481 1.7181862 1.8509302 1.9925626 2.1435888 9 1.5513282 1.6894790 1.8384592 1.9990046 2.1718933 2.3579477 10 1.6288946 1.7908477 1.9671514 2.1589250 2.3673637 2.5937425 Part 1: From scratch, create the following program... Within Lab4.java, the following has been done for you: Declare and initialize a 2D array of doubles to hold the values listed in the lookup table above. Study the code and ask if you do not understand what is being done. Declare a constant to hold the number of clients (5) Using a for loop to read in info for 5 separate clients. For each client, ask the user to input the client's name (store in a String array), the amount to be invested (assume int $100-$10,000) the interest rate (assume int 5-10 percent) and the term (years) of the investment (assume int 1-10). Store these last 3 values in either 3 separate int arrays or a single 2D array. (You will, therefore, either have 4 single- dimensional arrays or 1 single-D and 1 multi-D array) After all values have been entered in for all 5 clients, use another for loop for your output. Use the 2D lookup table to determine the Compound Value and Compound Interest earned by each client and display with a $-sign and 2 decimals (along with their name) as shown on the next page Compound Value is calculated by looking up the value for the given rate and vears and multiplying by the investment amount. For example: $100 at 7% for 3 years would be $100 * 1.2250430 = $122.50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
