Exam+1+Question+2+Fall+11

Exam+1+Question+2+Fall+11 - Exam 1 Question 2 (Estimated...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Exam 1 Question 2 (Estimated Time: 60 min) COP 2271 Visual Basic.NET Fall 2011 Project Name: FibonacciRabbits Introduction The concept of Fibonacci numbers was introduced to the western world in the year 1202 by a mathematician studying the mating pattern of rabbits. In an ideal setting, rabbits do not die and give birth every month. This situation gives rise to an interesting series of numbers that arises in many other parts of nature. In this question you will build a program that will help a rabbit breeder determine how many rabbits they have at the beginning of a certain month using Fibonacci numbers. Fibonacci Numbers and Rabbits The Fibonacci numbers are a sequence of integers defined by the nth Fibonacci number in the sequence being the sum of the two numbers before. In order to get the sequence going, the n = 0 and n = 1 Fibonacci numbers are defined as 0 and 1 respectively. The summing begins with n = 2, therefore the n = 2 Fibonacci number is the sum of 0 and 1 (the two previous numbers) equaling 1. See Table 1 for further detail. n: 0 1 2 3 4 5 6 7 8 F(n): 0 1 1 2 3 5 8 13 21 Table : The First 9 Fibonacci Numbers For instance, the n = 7 Fibonacci number is 13, which is the sum of 5 and 8. F(7) = F(5) + F(6) = 5 + 8 = 13
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/25/2011 for the course COP 2271 taught by Professor Staff during the Fall '11 term at University of Florida.

Page1 / 4

Exam+1+Question+2+Fall+11 - Exam 1 Question 2 (Estimated...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online