Answered step by step
Verified Expert Solution
Link Copied!

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++ ---------------------

image text in transcribed

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 values

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions