Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a file named \"data.txt\" next to your cpp file and write in this data 10

ID: 3619644 • Letter: C

Question

Create a file named "data.txt" next to your cpp file and write in this data
10
12
13
14
22
Each number on a seperate line

write a function named "search" that gets an array and a number (integer) as the parameter and searches for the number. if found the number in the array will return the indx of the number and if not it will return -1(indicating the number was not found)

in the main of the program read this number into an array

use the function search that you have written to search the number 13 into your array and output the index onto the screen.

Explanation / Answer

please rate - thanks
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote