USING C++
Create an array of 10 integers containing the following values(in this order): 12, -7, 3, 17, 42, 6, 18, -15, 0, 1. Create afunction called seqSearch that takes a const array and an integerkey as parameters, and returns the array slot number thatthe key was found in. If the key was not found, the function shouldreturn -1. Main should use the function to have the user enter anumber and print the array slot it was found in, or that it was notfound.
Expert Answer
Answer to USING C++ Create an array of 10 integers containing the following values (in this order): 12, -7, 3, 17, 42, 6, 18, -15,…