Hi, can you help me with this development program - I'm lost - can you help? How to create a code in x-code using C++. Write a program that uses an array (of size 10) to demonstrate how to use the linear search algorithm to search through a user generated list of numbers for a specific value. Assume that the numbers in the list will be integers from between -100 and +100.  Should store the numbers in a 1D array. The logic and print statements declaring whether the target is or is not in the set of numbers should also be located in your main method. Output #1 Please enter 10 numbers: Integer 1: 15 Integer 2: 12 Integer 3: 89 Integer 4: -14 Integer 5: 11 Integer 6: -99 Integer 7: 1 Integer 8: 42 Integer 9: 27 Integer 10: 2 What is the target number: 42 The target is in the set. Sample output #2 Please enter 10 numbers: Integer 1: 15 Integer 2: 12 Integer 3: 89 Integer 4: -14 Integer 5: 11 Integer 6: -99 Integer 7: 1 Integer 8: 42 Integer 9: 27 Integer 10: 2 What is the target number: -3 The target is not in the set.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 3PP: (Numerical) Given a one-dimensional array of integer numbers, write and test a function that...
icon
Related questions
Question

Hi, can you help me with this development program - I'm lost - can you help?

How to create a code in x-code using C++. Write a program that uses an array (of size 10) to demonstrate how to use the linear search algorithm to search through a user generated list of numbers for a specific value. Assume that the numbers in the list will be integers from between -100 and +100.  Should store the numbers in a 1D array. The logic and print statements declaring whether the target is or is not in the set of numbers should also be located in your main method.

Output #1 Please enter 10 numbers:

Integer 1: 15

Integer 2: 12

Integer 3: 89

Integer 4: -14

Integer 5: 11

Integer 6: -99

Integer 7: 1

Integer 8: 42

Integer 9: 27

Integer 10: 2

What is the target number: 42

The target is in the set.

Sample output #2 Please enter 10 numbers:

Integer 1: 15

Integer 2: 12

Integer 3: 89

Integer 4: -14

Integer 5: 11

Integer 6: -99

Integer 7: 1

Integer 8: 42

Integer 9: 27

Integer 10: 2

What is the target number: -3

The target is not in the set. 

Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning