Explain the difference between time complexity and space complexity in the context of algorithm analysis, and provide an example algorithm where optimizing one may lead to a trade-off with the other.
(Financial application: compute the future investment value) Write a method that computes future investment value at a given interest rate for a
(Financial application: compute the future investment value) Write a method that computes future investment value at a given interest rate for a specified number of years. The future investment is determined using the formula in Programming Exercise 2.21. Use the following method header: public static double futureInvestmentValue(double investmentAmount, double monthlyInterestRate,