Question: Assignment Instructions: For this assignment you will be creating a number of recursive functions to solve the following problems. You can implement all of the
Assignment Instructions:
For this assignment you will be creating a number of recursive functions to solve the following problems. You can implement all of the functions in a single module.
Recursive Multiplication:
Implement a recursive algorithm to compute the product of two integers, m and n using only addition and subtraction.
Harmonic Calculation:
Implement a recursive algorithm to compute the nth Harmonic number defined as: Isabel's Technique for List Summing:
Isabel has an approach for summing up an array list of integers that had a number of elements n equal to some power of ie etc. by creating a new list B of half the size of the original A such that Bi Ai Ai for all values of i in the range n
Implement a recursive algorithm that will calculate the sum of a list of integers using Isabel's approach. Your function can assume that the list must have a number of elements equal to some power of
File Search:
Implement a recursive algorithm that will print out any files from a specified starting path directory that match a search term. Your algorithm should process all subdirectories within the specified starting path and should output any files that contain the search term, even if they are not an exact match.
Testing Your Program:
Write some additional code in a main method to test out each of your functions and demonstrate that they work. For the multiplication function, demonstrate all combinations of positive and negative arguments.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
