1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Bess [88]
3 years ago
15

A computer is performing a binary search on the sorted list of 7 numbers below. What is the maximum number of iterations needed

to find the item?
Computers and Technology
1 answer:
omeli [17]3 years ago
6 0

Answer:

7 iterations

Explanation:

my teacher said so

You might be interested in
How can I use the internet/social media to protect my identity?
sattari [20]
Don't show your face and don't put your name or location online? i'm confused by this question.
3 0
3 years ago
After your yearly checkup, the doctor has bad news and good news. The bad news is that you tested positive for a serious disease
umka2103 [35]

Answer:

The probability that you have the disease, given that your test is positive is ≈ 0.0098

Explanation:

This is a conditional probability problem.

Let P(A|B) denote the conditional probability of A given B and it satisfies the equation

  • (1) P(A|B) = P(A) × P(B|A) / P(B)

We have the the probabilities:

  • P(Testing Positive | Having Disease) =0.99
  • P(Testing Negative | Not Having Disease) =0.99
  • P(Testing Positive | Not Having Disease) = 1-0.99=0.01
  • P(Having Disease) = 0.0001 (striking only one in 10,000 people)
  • P(Not Having Disease)= 1 - 0.0001 = 0.9999

<u>We can calculate</u>:

P(Testing Positive) =

P(Having Disease) × P(Testing Positive | Having Disease) + P(Not Having Disease) × P(Testing positive | Not Having Disease )  = 0.0001×0.99 + 0.9999×0.01 =0.010098

<u>from </u><u>(1) </u><u>we have the equation</u>:

P(Having Disease|Testing Positive)=P(Having Disease) × P(Testing Positive | Having Disease)/ P(Testing Positive) = 0.0001×0.99/0.010098≈0.0098

Thus, the probability that you have the disease, given that your test is positive is ≈ 0.0098

3 0
4 years ago
Code a program that will go through all the numbers from 1 to 100 and print them. However, if the number is evenly divisible by
worty [1.4K]

Answer:

public class Main

{

   // required method

   public static void fizzBuzz(){

       // looping through 1 to 100

       for(int i = 1; i <= 100; i++){

           //if number is evenly divisible by both 3 and 5

           if(i%3 == 0 && i%5 == 0){

               System.out.println("fiz buzz");

           }

                   // if number is divisible by 3

           else if (i%3 == 0){

               System.out.println("fizz");

           }

                        // if number is divisible by 5

           else if (i%5 == 0){

               System.out.println("buzz");

           }

                       // if number is not divisible by both 3 and 5

           else {

               System.out.println(i);

           }

       }

   }

       // main method

       public static void main(String[] args) {

           //calling function

               fizzBuzz();

       }

}

Explanation:

8 0
3 years ago
How precisely can you rotate a graphic in a document?
Cloud [144]
Any picture of what our talking about
4 0
3 years ago
* what is an electronic mail ?
Vikki [24]

Answer:

Electronic mail is a method of exchanging messages between people using electronic devices. Email entered limited use in the 1960s, but users could only send to users of the same computer, and some early email systems required the author and the recipient to both be online simultaneously, similar to instant messaging.

6 0
3 years ago
Other questions:
  • Under which menu option of a word processing program does a star appear
    9·2 answers
  • Inherent flaws in system software code are called:
    7·1 answer
  • Where would you look to see how much space is available on your c drive?
    8·1 answer
  • A smartphone user entered an incorrect passcode on his phone several times in a row, which locked the device.
    5·1 answer
  • For what parties the prepare documentation ​
    9·1 answer
  • Using a graphic organizer in the prewriting can do all of the following except what?
    9·1 answer
  • Ben Dover is the name of my best immature joke thank you
    7·2 answers
  • Iaz005<br> plz make a new zoom
    8·2 answers
  • ¿Consideran que nuestra sociedad chilena (modelo económico, los medios de comunicación, educación, la publicidad) promueve la sa
    11·1 answer
  • Your friends are having difficulties with their computer setups. Can you suggest a way to help each friend?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!