Question: I need the driver program in c++ that should ask the user for a set of three input parameters for SqrRoot and then do the

I need the driver program in c++ that should ask the user for a set of three input parameters for SqrRoot and then do the recursive calculation first, followed by the iterative version, printing out the two resulting values in turn. Put this into an outer loop that repeats the testing process using different sets of parameters until the user decides to exit the driver program. Try at least five to ten different sets of input parameters to exercise your code well.
The following defines a function that calculates an approximation of the square root of a number, starting with an approximate an within the specified tolerance(tol). iflappror numberl Stol appr TOT sar Root number, appror, tol) sarR approa number tol) number tol iflappror 2 approa a. What limitation must be placed on the values of the arguments if this function is to work correctly? b. Write a recursive method sqrRoot that implements the function c. Write a nonrecursive version of the method sqrRoot d. write a driver to test the recursive and iterative versions of the method sqrRoot
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
