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
lesya [120]
3 years ago
13

A binary search algorithm ____________ an ordered list in half to find an item.

Computers and Technology
1 answer:
mel-nik [20]3 years ago
4 0

Answer:

Binary search works on sorted arrays. Binary search begins by comparing an element in the middle of the array with the target value. If the target value matches the element, its position in the array is returned. If the target value is less than the element, the search continues in the lower half of the array.

Explanation:

You might be interested in
Create a python program that display this
aleksley [76]

Answer:

vxxgxfufjdfhgffghgfghgffh

4 0
3 years ago
6.12.1: Return number of pennies in total. Write a function NumberOfPennies() that returns the total number of pennies given a n
Anit [1.1K]

Answer:

public class Pennies

{

public static void main(String[] args) {

 System.out.println("Total pennies: " + NumberOfPennies(5, 6));

               System.out.println("Total pennies: " + NumberOfPennies(5));

}

public static int NumberOfPennies(int amount, int pennies) {

    int total = (amount * 100) + pennies;

   

    return total;

}

public static int NumberOfPennies(int amount) {

    NumberOfPennies(amount, 0);

    int total = amount * 100;

   

    return total;

}

}

Explanation:

- Create a function called NumberOfPennies that takes two parameters, amount and pennies

- In order to calculate the number of pennies, multiply the given amount by 100 and add the pennies. Set this result to the total and return the total.

- Since pennies parameter should be optional, overload the function NumberOfPennies so that it can take one parameter, amount. When it takes one parameter, the value of the pennies set to 0.

Inside the main, call the function with two possible scenarios

3 0
3 years ago
What is the difference between a programming language and natural (every-day) language?
Harlamova29_29 [7]
Natural languages are used for communication between people
6 0
3 years ago
Looking at the example below is the type value equal to a string or an integer?
Simora [160]
B. Integer I think that’s the answer
5 0
3 years ago
Read 2 more answers
You used range in definite loops earlier in the course. The output of the range function is a sequence, which is a list of integ
Leya [2.2K]

Answer:

The answers is [0,1,2,]. I hope this helps you out. Have a wonderful rest of your day. <3  <3  <3

Explanation:

3 0
3 years ago
Other questions:
  • "The process was placed in a suspended state by an agent; either itself, a parent process, or the OS, for the purpose of prevent
    10·1 answer
  • 5. Drawing Conclusions If you were a person in
    10·1 answer
  • Grandma Ester normally gives you hugs for your birthday - one for every year old you are. When you turned 15, she squished you w
    8·1 answer
  • Which type of tools enable you to choose only a portion of the image
    13·1 answer
  • True or false: It can take some time for the labs to load once you click “start lab.”
    7·1 answer
  • Which phrases from the two selections MOST help the reader define the meaning of "captivity"?
    11·2 answers
  • Directions: Asba student of Contact Center Service, you already have an experience using different computer programs. Try to rem
    8·2 answers
  • 1. What are the main uses for Protein in the body?
    13·2 answers
  • I<br> What is a Watermark?
    9·2 answers
  • Which adaptation of eap utilizes eap-mschapv2 inside of an encrypted tls tunnel?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!