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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:40
State the parts of a variable declaration?
Answers: 2
question
Computers and Technology, 23.06.2019 01:20
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
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
question
Mathematics, 07.10.2020 17:01
Questions on the website: 13722367