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, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 1
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr.nextdouble(); minutestraveled = scnr.nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system.out.println("miles: " + milestraveled); } }
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
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, 22.06.2019 14:20
Questions on the website: 13722363