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
Mila [183]
2 years ago
12

The code to perform a binary search is below. Match the variable name with what it holds.

Computers and Technology
1 answer:
Oksi-84 [34.3K]2 years ago
8 0

Answer:

First - The index of the leftmost member of the list being considered

Middle - The index of the center item in the list being considered

Last - The index of the rightmost member of the list being considered

Explanation:

Got it right on EDG. Sorry if I'm a little late but have a good day!

You might be interested in
Write a program that asks for the number of calories and fat grams in a food. The program should display the percentage of calor
Zigmanuir [339]

Answer:

 The solution code is written in Python 3:

  1. calories = int(input("Enter number of calories: "))
  2. fats = int(input("Enter number of fat in grams: "))
  3. if(calories > 0 and fats > 0):
  4.    cf = fats * 9
  5.    if(cf < calories):
  6.        percent = cf / calories  
  7.        if(percent < 0.3):
  8.            print("Food is low in fat")
  9.    else:
  10.        print("Error input. Calories from fat cannot more than total calories")
  11. else:
  12.    print("Error input. Calories and fats must be more than 0")

Explanation:

Firstly, use input function to ask user to enter total number of calories and fat in grams (Line 1-2)

Next we do the first input validation to check if the calories and fats are more than 0 (Line 4). If so apply formula to calculate calories from fats. If not, print error input message (Line 5, 13)

Then we proceed to next input validation to check if calories from fact more than total calories. If so, proceed to calculate percentage of calories from fats and if it is lower than 30%, display the appropriate message (Line 6 - 9). If fail the second input validation, the program will display another error input message again (Line 11)

7 0
4 years ago
Please explain the following joke: “There are 10 types of people in the world: those who understand binary and those who don’t.”
garik1379 [7]

It means that there are people  who understand binary and those that do not understand it. That is, binary is said to be the way that computers are known to express numbers.

<h3>What is the joke about?</h3>

This is known to be a popular  joke that is often  used by people who are known to be great savvy in the field of mathematics.

The joke is known to be one that makes the point that a person is implying that the phrase is about those who only understands the decimal system, and thus relies on numbers in groups of 10.

The binary system is one that relies on numbers that are known to be  in groups of 2.

Therefore, If the speaker of the above phrase is one who is able to understand binary, that person  would  be able to say that that the phrase  is correctly written as  "there are 2 types of people that understand binary".

Learn more about binary from

brainly.com/question/21475482

#SPJ1

4 0
2 years ago
Changes in the ownership of a file do not change the amount of data that is considered to belong to a user.
professor190 [17]
False because if you edit the ownership of file it will give permissions only with the permissions you can edit file,rename,or delete file.
5 0
3 years ago
Which of the following events would most likely produce an earthquake
o-na [289]

i'll answer your question if you tell us what the "following events" are

5 0
3 years ago
The method removeDupes is intended to remove duplicates from array a, returning n, the number of elements in a after duplicates
horrorfan [7]

Answer:

public int removeDupes(int[]a){

int n =0;

for(int x =0;x<a.length;x++){

for(int y=0;y<a.length;y++){

if(a[x]==a[y]){

n++;

}

}

int left = a.length-n;

return left;

}

}

Explanation:

3 0
3 years ago
Other questions:
  • The responsibilities of the IT department and the needs of the user departments may cause conflicts over A. the color of the use
    6·1 answer
  • Worms often try to disguise from where they are sending data by using a bogus ip addresses instead of using an authorized ip add
    11·1 answer
  • When using a spreadsheet, sum in the expression =sum(b10:b16), is called a(n) ________?
    8·1 answer
  • Many people object to increased cybersecurity because _____.
    12·2 answers
  • The R1 shell opens in a terminal window with black text and white background. What user is logged into
    8·1 answer
  • How Do I Make A Walk animation for a school Project?? Gifs?
    13·1 answer
  • In a typical e-mail address, the "host" is user: which one of the following word processing features saves you the most time whe
    8·1 answer
  • A user logs into Active Directory on a workstation and the user home directory does not redirect to a network share on a file se
    15·1 answer
  • Which of the following expressions shows the correct amount of sales tax for the computer at Store A? Select all that apply.
    10·2 answers
  • What are the uses of navigation keys​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!