akosiraff

Download TestSeriesVal

Oct 29th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/testseriesval/
  3. Consider a method which calculates and returns the following series:
  4. S(i) = 1 + 1/22 + 1/32+ 1/42 + 1/52 โ€ฆ + 1/i2 .
  5. The argument (i) has to be provided by user. The output is the value of S(i) which should be displayed either in the output window of the IDE, or in a GUI (however, designing a GUI is not mandatory, and your work is considered for full grade without a GUI).
  6. a) Design and implement seriesIter, the iterative version of the method.
  7. b) Design and implement seriesRec, the recursive version of the method.
  8. c) Write a driver program TestSeriesVal.java to test the two methods.
  9. Download: http://solutionzip.com/downloads/testseriesval/
Add Comment
Please, Sign In to add comment