import java.util.Scanner; import java.text.*; public class InvestmentSimulator { public static void main(String[] args) { System.out.println("You are now going to enter the 1st account info."); InvestmentAccount a1=new InvestmentAccount(); System.out.println("You are now going to enter the 2nd account info."); InvestmentAccount a2=new InvestmentAccount(); DecimalFormat df=new DecimalFormat("#.##"); // Next, write a for loop with the following properties: // a) It should start by setting a variable "year" to 0. // b) It should have a "termination condition", that is, // a boolean expression, that is true when the principal // in the first account is less than the principal // in the second account. // c) It should add one to the year each time. // Print out the values of the principal in each account for // each step in the loop. Also, make sure you add a year to // each account at each step in the loop. // Finally, make sure you define the "year" variable OUTSIDE // of the for loop. Otherwise, you will not be able to look // at it's value after the for loop.