How many comparisons will be done to find 8 in this list using a linear search?

2, 4, 6, 8, 10, 12

Answers

Answer 1

Answer:

I think 4 comparisons


Related Questions

RIGHT ANSWER GETS BRAINLEST

Complete the code.

You are writing a loop to allow the user to enter data until they enter a "Q". You want to allow them to enter an upper- or lowercase "Q".

if yourTeam.
() == "q":
break


The options they give are:
Upper
Compare
lower

Answers

Answer:

sir i beleive lower is your answer, i know it isnt upper.

Explanation:

:D

Answer:

lower

Explanation:

i just did the quiz and got it right :)

can someone help me on codehs. its 7.1.5: initials. here is what your supposed to do

Write a function called initials that will take a first and last name and return their initials using the following format:

initials("Tracy", "Turtle")
# => "T.T."
initials("Peter", "Parker")
# => "P.P."

Answers

Answer:

first = input( "What is your first name? " )

last = input( "What is your last name? " )

def initials():

   print ("Your initials are: "+first[0]+"."+last[0]+".")

initials ()

Explanation:

it works when I test but it won't submit. Hope this helps

Following are the program to prints the initials of the input value.  

Program Explanation:

Defining a class Main.Inside the class, a method "initials" is declared that takes two string variables "first, last" in the parameter.Inside the method, a return keyword is defined that uses the charAt method that returns the first character value of the parameters. In the next step, the main method is defined.Inside the main method, a print method is declared that calls initials method that accepts value in the parameter and prints its value.

Program:

public class Main //defining a class Main

{

   static String initials(String first, String last)//defining a String method initials that input two variables in the parameter

   {

       return first.charAt(0)+"."+last.charAt(0)+".";//using charAt method that returns first character value

   }

 public static void main(String[] as) //defining main method

 {

   System.out.println(initials("Tracy", "Turtle"));//using print method that calls initials method that accepts value in parameter

   System.out.println(initials("Peter", "Parker"));//using print method that calls initials method that accepts value in parameter

 }

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/2810164

In a particular spreadsheet, the data in each cell is password protected. When cells are selected, the formula is visible
in the formula bar. Which is true?
O The cells are locked and hidden.
The cells are locked and unhidden.
The cells are unlocked and hidden.
O The cells are unlocked and unhidden.

Answers

Answer:

Explanation:

Locked and hidden

Other Questions
imagine you're in a queue to the airport check-in desk if two-thirds of the queue is in front of you and three tenths of the queue is behind you how many people are in the queue please answer this im going to fail Rewrite the fraction as a decimal.\dfrac{13}{10}= 1013 WILL MARK BRAINLIEST Give the reason why tho following is not a polynomial x^2-3x^-1+5The three is negativeAll exponents are not whole numbersThere are only three termsThe highest exponent is 2 Help pls! 37 points. For the function y = -7x, complete the following table. choose the combination of factors that creates clear skies. humidity high or low air temperature warm or cold air pressure high or low What's 27.63 subtracted by 60 Please help if you know please and thanks ;) What childhood challenges does Jacqueline remember how was family life like before the invention of the radio? What is the difference between Magma and Lava?A. It is just a name change, magma is melted rock inside of the earth in lava is what magma is called if it reaches the surface of earthB. Magma is less dense than lavaC .Magma is formed deep in earth in lava forms near the surface of earth D.Magma makes Igneous rocks and lava forms volcanoes FILL IN THE BLANK. _______________ is one of the principal chemical compounds that living things use to store energy. Adenine, ribose, and three _______________ are parts of an ATP molecule How did jimmy Valentine Change throughout the story"Retrieved Reformation, by o Henry in a summary **Due soon, pls help!**Michael is buying a pair of jeans that regularly cost $40. They are on sale for 20% off. If the tax rate is 6%, what is the sale price of the Jeansincluding tax? In Dress of White Silk, where in the house is the narrating of the story? Erin had $35 more than Angie who had 3 times as much money as Jacob. If they had $196 altogether, how much money did each have? What did the Anglo-American Committee of Inquiry recommend? A. 80,000 Jewish refugees should be allowed entry into the United States B. 100,000 Jewish refugees should be allowed entry into Palestine C. 20,000 Jewish refugees should be allowed entry into Canada D. No Jewish refugees should be allowed entry into Palestine Pls halp I need it fast so please try your best to be fast The side length of an equilateral triangle is 6x - 12. Write an expression for the perimeter of the triangle in simplest form. sheila has a total of $20 to spend at the fall fair. If the armband for rides cost $12.50, what is the most she can spend on treats? write and solve an inequality