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
erik [133]
4 years ago
12

HELP! Answer to question 2?

Computers and Technology
1 answer:
Vesnalui [34]4 years ago
4 0
One advantage of Binary Search Algorithm: 
Compared to Linear search it is much faster because linear search starts its searching right from the first value but binary searches for something by splitting the array in two again and again and again. 

One disadvantage of Binary Search Algorithm:
Have to be sorted, unlike linear search that doesn't have to be. 
You might be interested in
Which element can be changed using the Print pane? Check all that apply
asambeis [7]

Answer:B C D E

Explanation:

EDGE 2021

3 0
3 years ago
Suppose list is a one dimensional array of size 25, where in each component is of type int. Further, suppose that sum is an int
Varvara68 [4.7K]

Answer:

# include <conio.h>

# include <iostream.h>

using namespace std;

main{

int a[25], sum;

cout<<"enter the values in array a";

for (int i=0; i<= 24 ; i++)

{

cin>>a[i];

}

sum =0;

for (int j=0;  j<=24 ; j++)

{

sum= sum + a[j];

}

cout<< sum;

getch ();

}

5 0
3 years ago
Read 2 more answers
Which term refers to the science that specifies the design and arrangement of items you use so you interact with the items effic
sashaice [31]

Answer:

the ergonomics To prevent a laptop from being stolen, you can use a surge protector. False; To prevent laptops from being stolen, you can use a cable lock. What is a digital certificate?

6 0
2 years ago
Write a program that asks the user for three strings. Then, print out whether the first string concatenated to the second string
ipn [44]

Answer:

import java.util.Scanner;

public class num5 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Enter The First String");

       String str1 = in.next();

       System.out.println("Enter The Second String");

       String str2 = in.next();

       System.out.println("Enter The Third String");

       String str3 = in.next();

       String oneAndTwo = str1+str2;

       if(str3.equals(oneAndTwo)){

           System.out.println(str1+" + "+str2+" is equal to "+str3+"!");

       }

       else

           System.out.println(str1+" + "+str2+" is not equal to "+str3+"!");

   }

}

Explanation:

  • Implemented in Using Java Programming Language
  • Import Scanner Class to prompt and receive users' input
  • Create three string variables and store the three values entered by the user (str1, str2 and str3)
  • Concatenate str1 and str2 using the + operator and assign to a new variable
  • Use the if statement with Java's .equals() method to check for equality of the new string with the third string
  • Print the appropriate message if the equal or not
8 0
3 years ago
AYUDAAA ESPARA HOYYY
DIA [1.3K]

Answer:

what?

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Give a command that will create a file named listing.dat, in your current (commandsAsst) directory, containing a list of all the
    9·1 answer
  • â________________ software can sometimes be used to decrypt a drive that is utilizing whole disk encryption.
    15·1 answer
  • What will be printed when the method printstuff is called?
    7·1 answer
  • An employee who interacts with customers regarding the nature of their car problems, rather than actually working on the vehicle
    12·2 answers
  • Which of the following factors will have the greatest impact on your credit score?1. Length of credit history 11. Payment histor
    7·1 answer
  • Write a program of while loop 1234 get printed 4231
    7·1 answer
  • Why do we need IP Addresses in order for the Internet to function properly?
    7·1 answer
  • Which pair of features is relevant when buying a pc?
    9·2 answers
  • Join my me et.goo gle.etj-dovn-kds​
    11·1 answer
  • Please help!
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!