Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started