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 10 numbers in the Fibonacci sequence are:
0112358132134
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 25, the program should print 581321. 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: 25
581321
Enter the starting value: 0
Enter the ending value: 40
0112358132134
Enter the starting value: 2
Enter the ending value: 55
235813213455
Enter the starting value: 150
Enter the ending value: 200
None found. using java where each user can input their own data/ numbers. use java.util Scanner

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_2

Step: 3

blur-text-image_3

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

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

how would you have done things differently?

Answered: 1 week ago