Question: Lab Exercise: 1. Write a program that implements the following methods recursively: a. Summation of first n number (F(n) = {1-11) b. Power function (x)
Lab Exercise: 1. Write a program that implements the following methods recursively: a. Summation of first n number (F(n) = {1-11) b. Power function (x) 2. Use lab 1 code to add the following recursive methods: a. void printCoursesRecursively that prints the department name and all the courses in the array recursively. (Hint: write an additional private helper method] b. Course maxRecursive() that search the courses array in the department class for the course with max id. (Hint: write an additional private helper method] 3. Use lab 2 code and write a recursive method search that search the linked list recursively for a key value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
