import java.math.*; import java.text.*; class MortgageCalculator4 { public static void main(String arguments[]) { //Program Variables using array double []terms = {84,180,360}; double []Rates = {0.0535, 0.055, 0.0575}; double loan = 200000; double term, interestRate; //Temporary variables to make things generic and clearer DecimalFormat df = new DecimalFormat("$###,###.00"); //Formatting the output //for each term and Rate starting from the first location of each array terms[] and Rates[] for (int i=0;i