This preview shows page 1. Sign up to view the full content.
Unformatted text preview: // fill in reading timesOlder System.out.printf("The sum of their ages is %d times", timesJake); System.out.print(" Jake's age minus how many? "); // fill in reading minus // print out the problem System.out.printf("Jan is %dx as old as Jake.\n",timesOlder); System.out.printf("The sum of their ages is %d times ", timesJake); System.out.println("Jake's age less " + minus); System.out.printf("How old are Jan and Jake?\n"); // calculate the result (fill this in) // print out the result System.out.println("The solution is: "); System.out.printf("Jan is %3.1f and Jake is %3.1f!\n", jan, jake); System.out.println("Goodbye"); } // end of main } // end of class Dreaded Algebra...
View Full Document
- Fall '09