Sid M. answered 02/25/20
Studied Computer Science and Engineering at University of Washington
Hello, Brandon,
(I know that I just answered a simpilar question, but let's pretend I didn't....)
Were I presented with this question, I'd probably either grab a pencil and a piece of paper, or maybe write a small program. Instead, I'll use text, and develop the steps to answer it, so you can follow along. First, let's restate the problem:
Determine the value for the following recursive method when x = 25.
f(x) = f(x - 6) + 1, iff x > 7; or -5, iff x <= 7
So:
Now:
