Computer Science, asked by failureeeee, 8 months ago

6. Design a class in java to overload function series() as follows

a. int series(int x, int n) with two integer arguments. The first integer argument x

accepts the number of the series and the second integer argument accepts the term of the series. The method returns the sum of the series. sum=x' + x? till n terms ..

b. void series(int p) is a method with a single integer argument which accepts the value for p terms of the series and computes the sum of the series. sum= 0, 7, 26, 63, . p terms

c. void series() is a method with no arguments and computes the sum of the series.

sum= + 2 3 5 + +

3 + till 15 terms.​

Attachments:

Answers

Answered by shauryakumar5929
2

it is helpful to you

Explanation:

Google par search Kar lo

Answered by sarah1578
1
Hi,
I have attached the screenshot of the code. Hope it helps
Attachments:
Similar questions