Create an array of 10 integers containing the following values (in this order): 12, -7, 3, 17, 42, 6, 18, -15, 0, 1. Create a function called seqSearch that takes a const array and an integer key as parameters, and returns the array slot number that the key was found in. If the key was not found, the function should return -1. Main should use the function to have the user enter a number and print the array slot it was found in, or that it was not found.
Test Cases:
Test Case 1:
Enter a number to search for: <17> 17 was found in array slot 3.
Test Case 2:
Enter a number to search for: <12> 12 was found in array slot 0.
Test Case 3:
Enter a number to search for: <1> 1 was found in array slot 9.
Test Case 4:
Enter a number to search for: <40>
40 was not found.
****Note: Should NOT say 40 was found in array slot -1!****
Only logged in customers who have purchased this product may leave a review.

![[SOLVED] Cs150 – lab 25](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip.jpg)

![[SOLVED] Cs150 – create a program that asks the user to enter two integer numbers, then tells the user: the sum of the numbers, the difference of the numbers (first minus second), the product of the numbers, and the quotient of the numbers with remainder. each of these should be output as a separate line and include the equation. sample output:](https://assignmentchef.com/wp-content/uploads/2022/08/downloadzip-1200x1200.jpg)
Reviews
There are no reviews yet.