write a program in any language you like to determine the number of rabbits we would have in 24 months.  You can check the validity and correctness of your program by testing the count at month 3, 4, and 5 to see if it matches the pair count in the diagram.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

write a program in any language you like to determine the number of rabbits we would have in 24 months.  You can check the validity and correctness of your program by testing the count at month 3, 4, and 5 to see if it matches the pair count in the diagram.

First, review the following diagram:
December
Young black couple
January
Black couple now adult
February
Red twins for Black couple
March
Blue twins for Black couple
April
Twins for Black, twins for Red
May
Twins for Black,
Red, Blue couples
thath
atte
Image source: Problematics: The breeding habits of Facebook shares and Fibonacci
rabbits.
This diagram represents the Fibonacci sequence in nature. You will recall that the
Fibonacci sequence is achieved by continually adding sums of numbers starting with
1+1.
1+1=2; 2+1=3; 3+2=5; 5+3=8; 8+5=13; and so on.
What does this have to do with our course in Sim and Mod? Well, suppose we want
to determine how many rabbits we would have if we kept one pair for two years (or
24 months). We could get two rabbits, feed and care for them for two years, then
count the rabbits. Too time-consuming and expensive, and we may not have the
facilities to do it. So we can use a mathematical model (the Fibonacci sequence)
and run a computer simulation.
Your task for this lab is to write a program in any language you like to determine
the number of rabbits we would have in 24 months. You can check the validity and
correctness of your program by testing the count at month 3, 4, and 5 to see if it
matches the pair count in the diagram.
Transcribed Image Text:First, review the following diagram: December Young black couple January Black couple now adult February Red twins for Black couple March Blue twins for Black couple April Twins for Black, twins for Red May Twins for Black, Red, Blue couples thath atte Image source: Problematics: The breeding habits of Facebook shares and Fibonacci rabbits. This diagram represents the Fibonacci sequence in nature. You will recall that the Fibonacci sequence is achieved by continually adding sums of numbers starting with 1+1. 1+1=2; 2+1=3; 3+2=5; 5+3=8; 8+5=13; and so on. What does this have to do with our course in Sim and Mod? Well, suppose we want to determine how many rabbits we would have if we kept one pair for two years (or 24 months). We could get two rabbits, feed and care for them for two years, then count the rabbits. Too time-consuming and expensive, and we may not have the facilities to do it. So we can use a mathematical model (the Fibonacci sequence) and run a computer simulation. Your task for this lab is to write a program in any language you like to determine the number of rabbits we would have in 24 months. You can check the validity and correctness of your program by testing the count at month 3, 4, and 5 to see if it matches the pair count in the diagram.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY