Consider a method which calculates and returns….solved

$14.99

Original Work ?
Category: You will Instantly receive a download link for .ZIP solution file upon Payment

Description

5/5 - (3 votes)

Consider a method which calculates and returns the following series:S(i) = 1 + 1/22+ 1/32+ 1/42+ 1/52… + 1/i2.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 forfull grade without a GUI).a) Design and implement seriesIter, the iterative version of the method.b) Design and implement seriesRec, the recursive version of the method.c) Write a driver program TestSeriesVal.java to test the two methods.Submission requirementsYour completed assignment consists of all the java files wrapped in a ziparchive. Name the archive Hw1_your_name (if I were you, it would beHw1_Rodica_Potolea.zip