

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Iteration CSc 1253: Project # 3
Out: 2/ Due: 3/2 by 11:50 PM
Definition 1. The Fibonacci numbers are the numbers in the following integer sequence: 0,1,1,2,3,5,8,13,21,34,55,....
By definition, the first two Fibonacci numbers are 0 and 1, and each sub- sequent number is the sum of the previous two. In mathematical terms, the sequence Fk of Fibonacci numbers is defined by the recurrence relation F 1 = 0, F 2 = 1, and Fk = Fk− 1 + Fk− 2 , k > 2.
Sample Run 1: Enter the number of terms in the Fibonacci series> F[1] = 0
Sample Run 2: Enter the number of terms in the Fibonacci series> F[2] = 0 + 1 = 1
Sample Run 3: Enter the number of terms in the Fibonacci series> F[4] = 0 + 1 + 1 + 2 = 4
Sample Run 4: Enter the number of terms in the Fibonacci series> F[8] = 0 + 1 + 1 + 2 + 3 + 5 + 8 + 13 = 33
Be sure to use descriptive names for all identifiers you define in your program. Follow the C++ Coding Style Guidelines we discussed in class. Name your source file fibseries.cpp.
Duncan 1 Spring 2011
Iteration CSc 1253: Project # 3
Your source file must have the following header comments:
/*
Duncan 2 Spring 2011