4. Define a class named SumSeries2 with the following description
Data Members/Instance Variables
int x
int n
double sum
Member Methods
void initialize()
instance variable
void accept(int num, int term)
with the
respectively.
double computeSeries()
the series
stores the number of the given series.
stores the term of the series.
stores the sum of the series.
is a method which initializes the
to their default legal values.
assigns the instance variables x and n
values stored in num and term
is a method which computes the sum of
and reurns the value of the sum. sum = x+ x+ x + x + - -- -+ x
1! 2! 3! 4!
n!
Answers
Answered by
2
Answer:
this is ur answer.........follow me............................................
Attachments:
Similar questions