Question: Code a method called calcSeries that calculates and returns the value of y in the following series: y = 1 + i=1 i+x where
Code a method called calcSeries that calculates and returns the value of y in the following series: y = 1 + i=1 i+x where n and x are two input integers and y is the returned double value. 1Assume x > 0, n>=0 Example: Input: x=8, n=4 So, the series is y = 1 + +8+: 3 /3+8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
