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, 21.06.2019 22:00
Which one of the following would administrators use to connect to a remote server securely for administration? a. telnetb. secure file transfer protocol (sftp)c. secure copy (scp)d. secure shell (ssh)
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
question
Computers and Technology, 22.06.2019 17:20
[a] create a class called “cycle” which has two instance integer variables as properties, “numberofwheels” and “weight.” create a constructor with two parameters, using the same variable names in the parameter list. assign each variable to numberofwheels” and “weight” respectively. write a separate application to test the class and display its properties. note: do not change the names of the instance variables or the variables listed in the constructor’s parameter list. [b] edit your class cycle by adding a default constructor which will assign the default values of 100 to represent the numberofwheels, and 1000 to represent the weight, by invoking a call to the other constructor. modify your application created in [a] to test the class.
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
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
Mathematics, 08.12.2020 23:20
question
Mathematics, 08.12.2020 23:20
question
English, 08.12.2020 23:20
question
World Languages, 08.12.2020 23:20
question
Mathematics, 08.12.2020 23:20
question
Mathematics, 08.12.2020 23:20
Questions on the website: 13722360