Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

solve it in c++ 9. Implement an array with values 1, 5, 14, 23, 45, 52, 58, 81, 82 91. a) Create a getIndex() function

image text in transcribedsolve it in c++

9. Implement an array with values 1, 5, 14, 23, 45, 52, 58, 81, 82 91. a) Create a getIndex() function which does a linear search upon the array for a specific value n. Return the index of n, or -1 if n does not exist. b) Print the array. c) Search the array for the values 23, 58, 11. Print the results. Output Example 1 5 14 23 45 52 58 71 82 91 Number 23 is located at index 3 Number 58 is located at index 6 Number 11 is located at index -1

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

What is conservative approach ?

Answered: 1 week ago

Question

What are the basic financial decisions ?

Answered: 1 week ago

Question

Identify how culture affects appropriate leadership behavior

Answered: 1 week ago