Question: Fibonacci sequences appear in biological settings, [11] in two consecutive Fibonacci numbers, such as branching in trees, arrangement of leaves on a stem, the fruitlets
Fibonacci sequences appear in biological settings,[11] in two consecutive Fibonacci numbers, such as branching in trees, arrangement of leaves on a stem, the fruitlets of a pineapple,[12] the flowering of artichoke, an uncurling fern and the arrangement of a pine cone,[13] and the family tree of honeybees.
Assignment
Your assignment is to create a list of 13 (or more) Fibonacci numbers by writing a java program to solve this logic problem.
Submit the Fibonacci java program.
Hints/suggestions:
Use only three variables to compute the sequence of at least 13 (or more) Fibonacci numbers. Also, I suggest using a for loop and set it to loop at least 11-13 times (you can adjust it).
Seed numbers will include zero (0) for first and one (1) for second. The third is: third = first + second
Seed numbers will output before you enter the loop.
Variables can have any name you want but I suggest:
first (int)
second (int)
third (int)
loopCount (for loop variable) (int)
Sample Output
0
1
1
2
3
5
8
13
21
34
55
89
144
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
