Question: 3. A Fibonacci sequence is composed of elements created by adding the two previous elements. The simplest Fibonacci sequence starts with 1, 1, and proceeds

3. A Fibonacci sequence is composed of elements created by adding the two previous elements. The simplest Fibonacci sequence starts with 1, 1, and proceeds as follows: 1, 1,2, 3, 5, 8, 13, 21, However, a Fibonacci sequence can be created with any two starting numbers. Fibonacci sequences appear regularly in nature. For example, the shell of the chambered nautilus grows in accordance with a Fibonacci sequence. (a) Write a script file to prompt the user to enter the first two numbers in a Fibonacci sequence, and the total number of elements requested for the sequence. Find the sequence and store it in an array by using a for loop. of elements as 5. polarplot graph. Use the element number for the angle, and the value of the element in (b) Check your script file for the test case with 3 and 5 as the first 2 numbers and total number (c) Now create a Fibonacci with 20 elements starting from 1, 1, and plot your results on a the sequence for the radius. You are not required to label the axes and title. (d) Does the polarplot graph looks like a shell
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
