Question: Need help doing this program in c++. Program 1: You are to create a recursive array function to perform a linear search through an How

 Need help doing this program in c++. Program 1: You are

Need help doing this program in c++.

Program 1: You are to create a recursive array function to perform a linear search through an How Program Works o Program has size of array of 5000 o Load value s into the array. Index o has value o, index 1 has value 1, etc o Pass array, key and size to the recursive function: o int recursiveLinearsearch (int array [l,int key, int size, bool & methodstatus) o User enters key to search for, recursive function calls itself until the key is found (methodstatus is true), print out the key and number of function calls when control is returned to the main o Handle situation of key not found (return number of function calls AND methodstatus of false) print not found message and number of calls in the main o Function returns a count of how many recursive calls were made o Value returned is the number of calls made to that point, that is, when item is found the value returned is 1 with preceding Eunctions adding 1 to the return value until the actual number of recursive function calls are counted) rflow occur? Can you change the size of the array to make Does the stack-ove that happen or change the size so it does not happen? Be sure to include screen shots of biggest possible vali found" plus a screen shot of stack overflow condition. d search and "not

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!