Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Pseudo and C# please) Fibo-what? If youve never heard of the Fibonacci series, its an infinite series that occurs everywhere in nature. It starts off

(Pseudo and C# please) Fibo-what? If youve never heard of the Fibonacci series, its an infinite series that occurs everywhere in nature. It starts off with two digits 0 and 1. To get the next value in the series, you add the previous two values. In this case, the third value is 0+1 = 1. The fourth value is 1+1 = 2, the fifth 1+2=3 and so on, to give us a series like: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, I always wondered what it would look like if you changed the starting values from 0 and 1 to some arbitrary (and if it would matter). Were going to do that here. Ask the user for a pair of starting values as well as a number of times to iterate the series, then produce the correct output. We recommend you use a FOR loop and use a sum variable. For part 1 of this assignment, design pseudocode to solve this problem. When working on the source code, call the file name Assignment4A(.java, .cs, .cpp) and the class name Assignment4A. When printing the next value in the series, print the comma first. The first two values are special cases for printing.

Sample Output #1

Enter seed 1: 5

Enter seed 2: 8

Number of iterations: 10

5,8,13,21,34,55,89,144,233,377,610,987

Sample Output #2:

Enter seed 1: 56

Enter seed 2: 78

Number of iterations: 6

56,78,134,212,346,558,904,1462

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

App Inventor

Authors: David Wolber, Hal Abelson

1st Edition

1449397484, 9781449397487

More Books

Students also viewed these Programming questions