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
This note was uploaded on 12/27/2011 for the course CMPSC 5 taught by Professor Franklin during the Fall '09 term at UCSB.
- Fall '09