If you invest π pulas at π percent interest rate compounded annually, in π years, your investment will grow to π (1 + π 100) π pulas. Write a Java program that reads π and π from the keyboard and displays the value of your investment for the first five years; similar to the following output (here π = P100000.00, π = 2%). Hint. You can use a variable for each of the five years. Investment: P100000.00 Interest rate: 2.00% ****************************** N(years) Total ****************************** 1 102000.00 2 104040.00 3 106120.80 4 108243.22 5 110408.08 Your program should be called Investment.java.
mport java.util.Scanner; public class Investment { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter the amount of money you want to invest: "); double amount = input.nextDouble(); System.out.println("Enter the interest rate: ")