1 EXERCISES
4. What is the output of the following code segment? Write the output in
the chart provided, leaving an empty box to denote a whitespace. (Write
only one character per box.) [10 points]
String name = "McKenzie";
int month = 9, day = 23, year = 2013;
double salary = 5035;
System.out.printf("Today's date is %02d/%02d/%d.\n", month, day, year);
System.out.printf("%5s earned $%.2f.\n", name, salary);