subject

Please help as soon as possible please and thank you Write a program that uses the following initializer list to find if a random value entered by a user is part of that list.

Don't put a file down below cause I can't access it

v = [24, 20, 29, 32, 34, 29, 49, 46, 39, 23, 42, 24, 38]

The program should ask the user to enter a value. If the value is in the array, the program should print the index. If it is not in the array, the program should print -1.

Hint: The values in the list are integers, so you should also get the value from the user as an integer. We can assume the user will only enter integer values.

Sample Run

search for: 29

2

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 03:30
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
What is the main difference between cloud computing and saas? cloud computing is a platform, and saas is software. cloud computing is software, and saas is a platform. cloud computing is a service, and saas is software. cloud computing is a service, and saas is a platform.
Answers: 1
question
Computers and Technology, 25.06.2019 00:30
Which email writing etiquette should ariel follow to let people know that she received their message? a. reply to their messages immediately b. use formal language c. specify the email's intent in the subject field d. be direct when writing the reply
Answers: 1
question
Computers and Technology, 25.06.2019 10:30
How do you transfer an image onto a computer
Answers: 2
You know the right answer?
Please help as soon as possible please and thank you Write a program that uses the following initia...
Questions
question
English, 26.08.2021 04:10
Questions on the website: 13722363