Question: In the language java 7.(10 pts) Given the following recursive function public int quest (int times) t if (times0) return 1: else return 4+ quest
7.(10 pts) Given the following recursive function public int quest (int times) t if (times0) return 1: else return 4+ quest (times-1); What is the base (or terminating) case for the function? a. b. What will the function return for I. times 1 11. 11. times = 2 111. ii. times = 4 c. What is the function calculating? d. What happens if times is a negative number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
