Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ --------------------- Question 3 Write a program that: 1) calls a function to get an integer value from the user. 2) passes a 2D array
C++ ---------------------
Question 3 Write a program that: 1) calls a function to get an integer value from the user. 2) passes a 2D array and users number to a function, which will search the array to find the number provided by the user. This function should return the location so it can be presented to the user as "Target X found at row Y, col Z!" in main. If the number provided by the user is not found the function should return -1 and the user notified "Target X not found". Since non-computer scientists count rows and columns starting with 1, display row & column answer in that same fashion. Your array must be a minimum of 6 x 6, with non-consecutive but ordered valuesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started