figure shows how the sections of code in each case relate to the various parts of the algorithm case initial call simulated method simmeth(case entry test done not done call method case case do calculation case exit case return point figure the cases and the step(method the program simulates methodbut it has no name in the listing because it isn' real java method let' call this simulated method simmeth(the initial call to simmeth((at case pushes the value entered by the user and return value of onto the stack and moves to the entry point of simmeth((case at its entry (case )simmeth(tests whether its argument is it accesses the argument by peeking at the top of the stack if the argument is this is the base case