Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Unit 4 - Project - Fibonacci Project Description Name the class for this project Fibonacci. The Fibonacci sequence is made up of numbers such that

Unit
4
-
Project
-
Fibonacci
Project Description
Name the class for this project Fibonacci.
The Fibonacci sequence is made up of numbers such that each number in the sequence is the sum of the two preceding numbers. The first
1
0
numbers in the Fibonacci sequence are:
0
1
1
2
3
5
8
1
3
2
1
3
4
For this project you are to write a program that will allow the user to enter a starting value and an ending value. The starting and ending values will not necessarily be a number in the Fibonacci sequence. The program should then print the Fibonacci numbers that lie between those two numbers if there are any.
For example, if the user enters
4
and
2
5
,
the program should print
5
8
1
3
2
1
.
If there are no values from the Fibonacci sequence between the two input values then the program should print None found.
Use single space separation between each printed value.
Here are several sample runs:
Enter the starting value:
4
Enter the ending value:
2
5
5
8
1
3
2
1
Enter the starting value:
0
Enter the ending value:
4
0
0
1
1
2
3
5
8
1
3
2
1
3
4
Enter the starting value:
2
Enter the ending value:
5
5
2
3
5
8
1
3
2
1
3
4
5
5
Enter the starting value:
1
5
0
Enter the ending value:
2
0
0
None found.

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

Database Systems For Advanced Applications 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

More Books

Students also viewed these Databases questions

Question

9. Describe the characteristics of power.

Answered: 1 week ago