The Fibonacci series is a sequence of numbers in which the first two terms are 1 and 1, or 0 and 1,
depending on the selected beginning point of the sequence, and each subsequent number is the sum of
the previous two terms. As an example, if the starting point of the series is 0 and 1, the Fibonacci series
is as shown below;
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ………….nth term.
You are required to write a Visual Basic.Net program that allows a user to enter the first two terms and
the number of terms of the series. Using the first two terms and the number of terms, your program
should be able to generate the Fibonacci series up to the nth term and load the generated series onto a
combo box and also load the reversal of the series onto another combo box. Your program should further
read the series into an array. In addition, it should be able to return the middle term (median) and sum
of the series.
Create an MDI form and add a File menu with sub menus Fibonnaci Series, Reverse Series, Median,
Sum, Clear All and Exit. On a child form, add three command buttons with captions Fibonnaci Series,
Clear All and Exit such that the Fibonnaci series sub menu and the Fibonacci series button when each is
clicked will generate the series, read the generated series into an array and load the series onto the
combo box.
Also if the Reverse Series sub menu is clicked the reversal of this Fibonacci series should be loaded onto
another combo box . If the median sub menu is clicked, your program should return the median of the
series, if the number of terms of the series is even, your program should return the average of the middle
two numbers in the series
The Clear All sub menu and the Clear All buttons should perform the same function. When a user clicks
on any of these, your program should ask the user whether he or she wants to clear. If the user clicks on
yes, it should clear all controls else it should not.
If the sum sub menu is clicked, your program should simply return the sum of the series.
The Exit sub menu and the Exit buttons should also perform the same function. If any of them is clicked,
it should prompt the user whether he or she wants to exit, if the user chooses yes, it should exit the
application else it should not.
please i want someone to guide me on how to go about it
DABOO BABOSIMA GIDEON is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.