Author: James D. Skrentny, skrentny@cs.wisc.edu copyright 2009-2012 all rights reserved Below are the 3 scenarios for tracing/understanding the flow of execution of methods. What is output by each scenario? Note: We'll assume the methods are in the same class so that we can use the method call shortcut. ************** * SCENARIO 1 * ************** public static void main(...) { S.o.pln("What does this program display?"); methodA(); methodB(); methodC(); S.o.pln("!"); } public static void methodA() { S.o.p("S"); S.o.p("p"); } public static void methodB() { S.o.p("I"); S.o.p("f"); } public static void methodC() { S.o.p("F"); S.o.p("y"); } ************** * SCENARIO 2 * ************** public static void main(...) { S.o.pln("What does this program display?"); methodA(); S.o.pln("!"); } public static void methodA() { S.o.p("c"); methodB(); S.o.p("O"); } public static void methodB() { S.o.p("R"); methodC(); S.o.p("t"); } public static void methodC() { S.o.p("Y"); S.o.p("p"); } ************** * SCENARIO 3 * ************** public static void main(...) { S.o.pln("What does this program display?"); methodA(); methodC(); S.o.pln("!"); } public static void methodA() { S.o.pln("s"); methodC(); S.o.pln("-"); } public static void methodB() { S.o.pln("a"); S.o.pln("R"); } public static void methodC() { S.o.pln("M"); methodB(); S.o.pln("t"); }