import java.util.*; public class Lab9 { // Must specify three parameters in the parameter list for amount borrowed, // interest rate as a percentage, and length of the loan in years. public static double payment() { } // end of function payment /***********************************************************************/ // You must determine what parameters are needed public static void printTotals() { // You will have to figure out what goes in place of EXPRESSION---it could // be a variable provided as a parameter, a local variable you calculate, // or some arithmetic expression as needed. System.out.printf("\n** RESULTS **\n\n"); System.out.printf("For a %d year loan of ",EXPRESSION); System.out.printf("$%.2f",EXPRESSION); System.out.printf(" at %.2f%% interest ---\n\n",EXPRESSION); System.out.printf("Monthly payment = $%.2f\n",EXPRESSION); System.out.printf("Total interest = $%.2f\n",EXPRESSION); } // end of function printTotals /***********************************************************************/ public static void main(String[] args) { // Main program goes here. Will use the payment and printTotals functions. Scanner keyboard = new Scanner(System.in); } }