Question: You can also use the Math.pow( a, b ) method to compute a raised to the power b (ie., a^b) What is the source code

 You can also use the Math.pow(a, b) method to compute a

You can also use the Math.pow(a, b) method to compute a raised to the power b (ie.,a^b)

What is the source code for this program?

Create a Java console program that prompts a user to enter an investment amount (i.e., present value), the number of periods (e.g., months), and the annual percentage rate (APR). The program u the input values to ses calculate and list the future values for the periods. Then, the program asks the user to enter c to continue or any other key to quit. The following is an example if a user has entered $1,000 for the initial investment, 12 months for the periods, and 4.25% for the APR. The user then entered c to continue with $1,000 of investment, 4 months for the periods, and 12% of the APR. Enter the investment amount: 1000 Enter the annual percentage rate: 4.25 Enter the number of period 12 Periods Balance 1003.54 007.10 1010.66 1014.24 1017.83 1021 44 1025 1028.69 1032.33 10 1035.99 11 1039.66 12 1043.34 Enter c or C to continue or any other key to quit: Enter the investment amount: 1000 Enter the annual percentage rate: 12 Enter the number of periods 4 Periods Balance 1010.00 1020.10 1030.30 4 1040.60 Enter c or C to continue or any other key to quit: q C: Java Code The interest is calculated monthly and you can use the following arithmetic formula to calculate the future investment value: Fv Pv (1 r 12) Where Fv: future value of investment amount PV: present value or investment amount r: annual interest rate with decimal place numbers number of periods

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!