Question: For this exercise, create an array of 20 integers. Fill the array with random numbers between 1 and 50. Display the array 5 per line.
For this exercise, create an array of 20 integers. Fill the array with random numbers between 1 and 50. Display the array 5 per line. Ask the user for five values and, using a linear search, report if each of them is in the array. Make sure to search for both values that are in the array and that are not. Use separate functions to fill the array, display the array, and search the array. Main should call these functions as needed code in C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
