Question: Do it Using CPP Language. Thanks. Objective: Become proficient with recursion by implementing the two algorithms below, and manipulating linked lists with recursion. Description of

 Do it Using CPP Language. Thanks. Objective: Become proficient with recursion

Do it Using CPP Language. Thanks.

Objective: Become proficient with recursion by implementing the two algorithms below, and manipulating linked lists with recursion. Description of Fibonacci function: The Fibonacci sequence is the series of integers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, .. Note that each element in the series is the sum of the preceding two items. The formula for calculating the nth number of the sequence is given by: fib(n) = {n, if n = 0 or 1 fib (n - 1) + fib (n - 2) n > 1 Description of squareroot function: The following expression defines a function that calculates an approximation of the squareroot of a number, starting with an approximate answer (est), within the specified tolerance (to1). squareroot (n, est, tol) = est, if |est^2 - n| lessthanorequalto tol squareroot (n, est^2 + n/2est, tol) if|est^2 - n| > tol Linked List manipulation using recursion: Perform the following operations on a linked list of words (strings). The words are to be stored using dynamically allocated memory (not an array). Write functions to perform the following tasks. Insertion Length Shortest and Longest word Contains a word (search) Deliverables: A complete program to calculate Fibonacci numbers, calculate squareroot s and manipulate linked lists of words. A program design sheet. Describe all functions necessary to implement your program. A sample calculation sheet. Show the expected values for both the Fibonacci series and the squareroot . Programming Log: - Record the time required to design and implement your program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!