subject

Make a class FibSeries to generate Fibonacci series: 0,1, 1, 2, 3, 5, 8, 13, 21, (The Fibonacci series is generated by adding two previous terms by taking 0, 1 as starting terms.
Frample: the starting values are 0, 1 then if add (0+1)=1 (this is 3rd term), then add (1+1) = 2 (this is 4 term and
so on...)
Private variaties of the class are first, second, third (integer types).
Public functions of the class are:
(i) BibSeries( )- to store 0 to first and I to second (as two starting terms).
( void PrintSeries )- to print Fibonacci series up to 30 terms using while loop.
Write a main() function to print the Fibonacci series by calling suitable functions.
Create a class factorial whose members are as given:
Private data members of the class : num, f (integer variables)
Public member functions of the class :
() factorial - a default constructor to assign 1 to 'I'
cil) factorial int n ), a parameterized constructor to assign num = n.
(int GetFactorial - to find and return the factorial of num.

Write a main() function to input a number and by invoking methods, print the factorial.
members:

Write a program in java
please​

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 08:00, hernandez09297
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
image
Computers and Technology, 24.06.2019 02:00, ishmael9332
How are we able to create photographs differently than 100 years ago? explain your answer in relation to your photograph you selected.
Answers: 1
image
Computers and Technology, 24.06.2019 08:30, trashellyoung
Why might you choose to create a functional resume
Answers: 1
image
Computers and Technology, 24.06.2019 09:10, daedae11142
  to change the number of rows and columns displayed by the excel object a. select the object and drag a size handle on the active object. b. deselect the object and drag a size handle of the object. c. deselect the object and drag a row or column divider of the object. d. select the object and drag a row or column divider on the active object.
Answers: 2
You know the right answer?
Make a class FibSeries to generate Fibonacci series: 0,1, 1, 2, 3, 5, 8, 13, 21, (The Fibonacci ser...

Questions in other subjects: