I want code for this question . the question is about fibonacci number.COMP.1010 (202, 203)
SP16 - Dr. Lin
03-26-2016 (Sat.), 11:59pm
: C source file,
, on Blackboard
is defined as follows:
n > 1
In other words, each number is the sum of the two previous numbers in the sequence.
first several Fibonacci numbers are 1, 1, 2, 3, 5, and 8.
Interestingly, certain population growth
rates are characterized by the Fibonacci numbers.
If a population has no deaths, then the series
gives the size of the population after each time period.
Assume that a population of green crud grows at a rate described by the Fibonacci numbers and
has a time period of 5 days.
Hence, if a green crud population starts out as 10 pounds of crud,
then after 5 days, there is still 10 pounds of crud; in 10 days, there is 20 pounds of crud; in 15
days, 30 pounds of crud; in 20 days, 50 pounds of crud, and so on, i.e.,
Write a program that takes both the initial size of a green crud population (in pounds) and some
number of days as input from the keyboard, and computes from that information the size of the
population (in pounds) after the specified number of days.
Assume that the population size is the
same for four days and then increases every fifth day.
The program must allow the user to repeat
this calculation as long as desired.
Please note that zero is a valid number of days for the crud to
grow in which case it would remain at its initial value.
Please plan ahead and don’t start the assignment in the last minuet before the due date.
You need to start it as soon as possible so you’ll have plenty of time to study and ask questions.
Technical difficulty (e.g., internet access) is NOT an excuse that you can’t submit the assignment
If you can’t immediately figure out how to write the C code, please try the following
think about what your program will need to do (the overall goal);
This question was answered on: May 23, 2022
This attachment is locked
Our expert Writers have done this assignment before, you can reorder for a fresh, original and plagiarism-free copy and it will be redone much faster (Deadline assured. Flexible pricing. TurnItIn Report provided)
May 23, 2022EXPERT
We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.
You can also use these solutions: