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("#.##"); int year; for (year=0; a1.principal