How many passes will it take to find 12 using a binary search? 8, 10, 12, 14, 16, 18, 20
1 3 4 2

Answers

Answer 1

Answer:

3 passes

Explanation:

Binary search halves and halves an ordered list of numbers until the value being searched is found.

14 is the middle number. it is larger than 12 so we look at the left side

10 is the middle number of the left side it is smaller than 12 os we look at the right side

12 is the middle number between 10 and 14 and it is also the number we are trying to find.


Related Questions

What can be written to perform a certain number of iterations or to iterate until a specific result is achieved?

Answers

so in coding we use a thing called a loop to one of the most common loops is a if or loop this is when we tell the software to keep trying the task that is in the loop until it completes the task.

-scav

A student is writing a research paper about the poetry of the Harlem Renaissance. Which style guidelines will the
student most likely follow when writing about this topic?
-American Chemical Society (ACS)
-Modern Language Association (MLA)
-Council of Science Editors (CSE)
-American Psychological Association (APA)

Answers

Answer:

b

Explanation:

lesssss gooo CLOUWT

The style guidelines that the student is most likely to follow when writing about the poetry of the Harlem Renaissance is Modern Language Association (MLA). The MLA style is commonly used for writing in the humanities, including literature, language, and cultural studies.

What is Modern Language Association (MLA)?

The Modern Language Association (MLA) is a professional organization for scholars of language and literature. It is mainly focused on the study and teaching of languages and literature, particularly in the United States.

The MLA publishes several academic journals, including the flagship journal PMLA (Publications of the Modern Language Association of America), and produces a well-known academic writing style guide called the MLA Handbook for Writers of Research Papers.

This handbook provides guidelines for how to format academic papers and how to properly cite sources in research writing.

To know more about Modern Language Association (MLA):

https://brainly.com/question/2031731

#SPJ2

What is one similarity between low-and high-level programming languages? (5 points)
оа
Both are able to run programs quickly.
Ob
Both are human-friendly and easy for humans to read.
ос
Both are limited to certain types of hardware.
Od
Both are used to communicate commands to a computer.

Answers

Answer:

Both high and low level computer languages are used to communicate directly with a computer, so the answer is D.

Explanation:

What are the pros and cons of using ICT​

Answers

Answer:

Communication - Speed / time – money can be saved because it's much quicker to move information around. ...

Globalization - Video conferencing saves money on flights and accommodation. ...

Cost effectiveness - It feels free to send an email (although it isn't); it's without doubt cheaper than phone calls.

Explanation:

Identify six specific skills that a computer software engineer is expected to demonstrate.

Answers

1.) Team work

2.) Disciple

3.). Creativity

4.) Attension To Deatil

5.) Time Mangament

Explanation:

Answer:

A computer programmer needs to demonstrate that they are:

1. A team player

2. Able to meet deadlines

3. Able to solve problems logically and efficiently

4. Able to create programs that fulfill their intended purpose

5. Able to be flexible (do many different types of jobs)

6. Able to adapt to new changes and be able to learn new skills

Explanation:

Computer programmers are tasked with creating software that works effectively with the given hardware and the people using it, and to do that, they have to be very skilled in many areas.

in ICT what is the difference between Save and Save As

Answers

Choosing "Save" simply saves your work by updating the last saved version of the file to match the current version you see on your screen.

Choosing "Save As..." brings up a prompt to save your work as a file with a different name. For example, you might choose to save a document called "Paper - rev. 3" as "Paper - rev. 4". This way, you can save you file at different stages and keep multiple versions on your hard drive.

Choosing "Save" and then "Save As..." is also a good way to make a backup of your file. Just be sure to rename the file something new when you choose "Save As..." or you will overwrite the current saved version, just like choosing the "Save" command would do.

Answer:

Save updates the files that are already created.

Save as creates a new file or store the existing file in a new location.

Complete the sentence with the correct response.

The central core of an operating system is called the .

Answers

Answer:

Kernel

Explanation:

The Kernel is the program that constitutes the central core of the operating system kernel is the first part of operating system to load into memory during booting kernel is made of various modules which can not be loaded in running operating system kernel remains in the memory during the entire computer session

concept of green computing​

Answers

Answer:

Reducing Environmental Impact of Technology

Explanation:

The main concept of green computing is to reduce the environmental impact that technology has. This revolves around everything that has to do with technology and computing. Including using technology and software to create solutions to better the environment, while also using computing resources as efficiently as possible. Then when the physical devices are obsolete, recycle as much as possible in order to reduce the physical waste that technology has on the environment.

PLEASE HELP !!!!!!!!!!!!!
What is revising?

Answers

Answer:

Revision literally means to “see again,” to look at something from a fresh, critical perspective. It is an ongoing process of rethinking the paper: reconsidering your arguments, reviewing your evidence, refining your purpose, reorganizing your presentation, reviving stale prose.

___________ helps businesses conduct interactive meetings online, including conferences, training, support sessions, and client presentations.

Answers

Answer: Web Conferencing

Explanation:  I was gonna say technology but that's super broad. It could also be collaborative tools but I think this is the correct answer.

You are a security consultant and have been hired to evaluate an organization's physical security practices. All employees must pass through a locked door to enter the main work area. Access is restricted using a biometric fingerprint lock. A receptionist is located next to the locked door in the reception area. She uses an iPad application to log any security events that may occur. She also uses her iPad to complete work tasks as assigned by the organization's CEO. What could you do to add an additional layer of security to this organization

Answers

The answer is Train the receptionist to keep her ipod in a locked drawer when not in use. Disable the network jacks in the reception area

Train the receptionist to keep her ipod in a locked drawer when not in use.

What is ipod?

Apple Inc. created and marketed the iPod line of portable media players and multifunctional mobile gadgets, which has since been discontinued.  On October 23, 2001, the initial version of iTunes was made available, almost 8 and a half months after the Macintosh version.

As of 2022, Apple is anticipated to have sold 450 million iPod products. On May 10, 2022, Apple stopped producing the iPod range of products. The iPod brand was abandoned by Apple the longest, after more than 20 years.

Some versions of the iPod can act as external data storage devices, just like other digital music players. Before macOS 10.15, users could transfer contacts, e-mail settings, calendars, music, photographs, movies, games, and other content to devices that supported the iTunes program from Apple.

Therefore, Train the receptionist to keep her ipod in a locked drawer when not in use.

To learn more about ipod, refer to the link:

https://brainly.com/question/119195

#SPJ5

3. Maria is in charge of consolidating the names of the participants of the two-day virtual
seminar. She wants to arrange the names alphabetically using MS Excel. Which of the following is
the correct sequence of steps in sorting text?
1. Click the Sort & Filter command. A drop down menu appears.
11. Choose Sort A to Z.
III. Select the cell range needed to be sorted.
IV. Go to the Editing Styles group of Home Tab.
A. I, II, III and IV
C. III, IV, I and I
B. II, II, IV and I
D. IV, l, ll and I​

Answers

Answer:

The correct sequence of steps in sorting text is;

III, IV, I and II

Which is option 'C' where the last item is II

C. III, IV, I and II

Explanation:

Sorting is the orderly arrangement of items (data) according to a specified criteria such as arranging a list of items alphabetically or a numerical arrangement of a data collection

Filtering is the selection for display, data that meets a specific condition

To arrange the names of the participants of the two-day virtual seminar alphabetically using MS Excel the sequence of steps are;

1. Select the rows or columns the are to be sorted by using steps for selecting  rows and/or columns

2. Go to the Editing group of the Home Tab ribbon

3. Click on (the down arrow besides) the Sort & Filter command icon to display a drop down menu with options for type of sorting and filtering

4. Choose Sort A to Z to sort the contents of the cell range in increasing alphabetical order

Therefore, the correct sequence of steps are;

III. Select the cell range needed to be sorted

IV. Go to the Editing Styles group of the Home Tab

I. Click the Sort & Filter command. A drop down menu appears

II. Choose Sort A to Z.

The correct sequence is III, IV, I and II.

Match the characteristics to the mobile operating system that it describes.

1. simple, user-friendly design Apple iOS
2. preferences personalized Microsoft
3. limited number of available apps Android

Answers

Answer:

1. is Apple's iOS

2. is Android

3. is Microsoft

 Someone plzzz help !
Can you use 2 wireless keyboards and 2 wireless mouse on a dual monitor desktop without interfering with the other monitor ?

Answers

Answer:

Good luck

Explanation:

You might find a software but normally you'd need two different OS's but it might be possible if you go under mouse and keyboard settings but it's highly unlikely you'll find what you're looking for there

How is a high-level programming language compiled? (5 points)
O a
A binary interpreter is used to translate each line of code.

All lines of code are translated together and then executed at once.
ос
One line of code is translated and then executed before moving to the next line.
d
Six lines of code are translated and then executed before moving to the next set of six.

Answers

Answer:

A high-level language is a programming language that uses English and mathematical symbols in its instructions. To execute a program in a high-level language, it can be compiled or interpreted. A compiler translates the entire program written in a high-level language to machine language prior to execution. After the compiler translates the code into machine language, it is typically executed line-by-line.

Explanation:

Answer:

One line of code is translated and then executed before moving to the next line.

When you save a page as a template, Dreamweaver stores the new template in a folder named ______________________. *

Answers

when you store a  template in Dreamweaver it is stored in the template folders it also puts a copy in the root folder.

-scav

A DTP firm has published and printed fliers for an upcoming fundraising event. In which section of the flyer would you find the contact details of the DTP firm
A. Body
B. Credits
C. Navigation
D. Title

Answers

B.Credits at the end of the flyer

1. Atestharnessprogramfortestingsortingmethodsisprovidedwiththeprogram iles.ItisintheileSorts.javainthech11.sortspackage.Theprogramincludes aswapmethodthatisusedbyallofthesortingmethodstoswaparrayelements. a. Describeanapproachtomodifyingtheprogramsothataftercallingasorting methodtheprogramprintsoutthenumberofswapsneededbythesorting method. b. Implementyourapproach. c. TestyournewprogrambyrunningtheselectionSortmethod.Yourprogram shouldreport49swaps.

Answers

Answer:

Following are the code to this question:

//import package

import java.util.*;

import java.text.*;

public class Main//defining a class

{

static final int t = 50;//defining an integer constant variable

static int[] ele = new int[t];//defining an array

static int tS = 0;//defining integer variable

static void initelements()//defining a static method

{

Random r= new Random();//creating Random class Object

for (int i = 0; i < t; i++)//use loop to add value in array

ele[i] = Math.abs(r.nextInt()) % 100;//add value in array

}

static public boolean isSorted()//defining a method isSorted

{

boolean x = true;//defining boolean variable

for (int i = 0; i < (t - 1); i++)//use for loop to count array values

if (ele[i] > ele[i + 1])//use if to compare array values

x = false;//use boolean variable to hold false value

return x;//return boolean value

}

static public void swap(int x1, int x2)//defining swap method

{

tS++;//increment variable value by 1

//performing swapping

int te = ele[x1];//defining te variable that holds array values

ele[x1] = ele[x2];//exchanging array values

ele[x2] = te;//holding te values

}

static public void disp()//defining a method disp

{

int v1;

DecimalFormat f = new DecimalFormat("00");//creating DecimalFormat class Object

System.out.println("The elements array is:");//print message

for (int i = 0; i <t; i++)//defining for loop  

{

v1 = ele[i];//holding array value in v1 variable

if (((i + 1) % 10) == 0)//use if to check i value

System.out.println(f.format(v1));//print value

else//else block

System.out.print(f.format(v1) + " ");//print value

}

System.out.println();//print space

}

static int getMinimum(int st, int en)//defining a method getMinimum

{

int iMi = st;//defining variable that holds parameter value

for (int i = st + 1; i <= en; i++)//use for loop compare array value

if (ele[i] < ele[iMi])//compare array value

iMi = i;//use iMi to hold loop value

return iMi;//return iMi value

}

static void selectionSort()//defining a selectionSort method

{

int e = t - 1;//defining e variable that holds total array count value

for (int i = 0; i < e; i++)//use for loop to call swap method  

swap(i, getMinimum(i, e));//calling the swap method

}

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

{

initelements();//calling initelements method

disp();//calling disp method

System.out.println("elements is sorted: " + isSorted());//calling is isSorted method with the message

System.out.println();//for space

selectionSort();//calling selectionSort method

System.out.println("No of swaps :" + tS);//print totalswap value with the message

disp();//calling disp method

System.out.println("elements is sorted: " + isSorted());//calling is isSorted method with the message

System.out.println();//for space

}

}

Output:

Please find the attached file.

Explanation:

In this code inside the Main class, 5 static methods "initelements, isSorted, swap, disp, getMinimum and selectionSort" is declared, in which the first method holds random values in arrays, in second array it sorts its values, in the third method it swap the array, in the disp method it shows array values.

In the "getMinimum and selectionSort"  it sorts array values and inside the main method, it calls all methods and prints their values.

What does a computer program use as a means to evaluate a condition as True or False?

Answers

Answer:

true

Explanation:

Answer:

A Boolean expression.

Explanation:

A Boolean expression is a logical statement that is either TRUE or FALSE . Boolean expressions can compare data of any type as long as both parts of the expression have the same basic data type.

Write down a scratch program which:
performs the following tasks 5 times:
1. asks the user to input numbers
2. add the numbers in total variable
3. outputs the result

Answers

What computer language?

JAVA

Write a method that takes 2 parameters: an ArrayList list, and an int numRepeats representing the number of times to repeat each element in the array.


Return a new ArrayList with each element repeated numRepeats times.


For example, if we had an ArrayList list with the values ["hello", "world"]:


repeatElements(list, 3)

Should return a new ArrayList with the elements:


["hello", "hello", "hello", "world", "world", "world"]


public ArrayList repeatElements(ArrayList list, int numRepeats)

{


}

Answers

Answer:

Explanation:

The following Java code creates the repeatElements method as requested and uses the test case shown in the question to test the method. The output can be seen in the attached picture below.

import java.util.ArrayList;

class Brainly {

   public static void main(String[] args) {

       ArrayList list = new ArrayList();

       list.add("Hello");

       list.add("World");

       System.out.println(repeatElements(list, 3));

   }

   public static ArrayList repeatElements(ArrayList list, int numRepeats) {

       ArrayList newList = new ArrayList();

       for (Object x:list) {

           for (int i = 0; i < numRepeats; i++) {

               newList.add(x);

           }

       }  

       return newList;

   }

}

1. What is a Network?

A.an arrangement of intersecting horizontal and vertical lines.

B.a group or system of interconnected people or things.

C.files on a computer

D.a device drive used to carry information




Answers

B. a group or system of interconnected people or things

A way to categorize information and point you to where to find that information is called
a. An index c. A table of contents
b. A glossary d. Both A and C

Please select the best answer from the choices provided
A
B
C
D

Answers

I think the answer is D

Answer:

D

Explanation:

QUESTION 9 / 10
What is the problem with paying only your minimum credit card balance each month?
A. It lowers your credit score
B. You have to pay interest
C. The bank will cancel your credit card
D. All of the above

Answers

Answer:

The answer is C. the bank will cancel your credit card.

Explanation:

What is a network?
A. The software only that connects electronic devices so they can
communicate with each other

B. The hardware only that connects electronic devices so they can
communicate with each other

C. The hardware and software that prevents electronic devices from
communicating with each other

D. The hardware and software connecting electronic devices so they
can communicate with each other

Answers

Answer:  For a network to exist, both the hardware and software of a computer must be able to communicate with other computers, so the answer is D.

The hardware and software connecting electronic devices so they can communicate with each other.

What is Network?

An interconnected system of nodes that can send, receive, and exchange data, voice, and video traffic is known as a computer network, sometimes known as a data network. Servers or modems are two examples of nodes in a network. Endpoint users frequently use computer networks to exchange resources and communicate.

They frequently appear everywhere, including in buildings like homes, offices, and government agencies. Computer networks can be used to share information and get around geographical restrictions.

Several protocols and algorithms are used by network devices to define the precise transmission and reception of data by endpoints. For instance.

Therefore, The hardware and software connecting electronic devices so they can communicate with each other.

To learn more about Network, refer to the link:

https://brainly.com/question/15002514

#SPJ7

Restricciones en el uso, adquisición de licencias, No se puede modificar, No se puede redistribuir; son características del software

Answers

Answer:

Software de propietario o privativo.

Explanation:

Este tipo de software no permite ningún tipo modificación,ni redistribución, pues esa funciones están totalmente limitadas por el propietario o dueño del software.Si se requiere alguna distribución o copia ,el cliente debe solicitar pagar.

Match each of the following terms to its definition: I. web-based II. open source III. project management IV. personal information manager V. proprietary A. software used to keep track of appointments B. software that is hosted on a website C. software used to track tasks and coordinate resources D. software which must be purchased E. software code that is freely available

Answers

Answer:

A. Personal information manager.

B. Web-based.

C. Project management.

D. Proprietary.

E. Open source.

Explanation:

A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer how to perform a specific task and to solve a particular problem.

Simply stated, it is a computer program or application that comprises of sets of code for performing specific tasks on the system.

Basically, softwares are categorized into the following categories;

A. Personal information manager: software used to keep track of appointments. It can be used to schedule and manage schedules easily.

B. Web-based: software that is hosted on a website. It works based on cloud computing services and as such requires the use of internet for use at all times.

C. Project management: software used to track tasks and coordinate resources.

D. Proprietary: software which must be purchased. It also known as a closed-source software and can be defined as any software application or program that has its source code copyrighted and as such cannot be used, modified or distributed without authorization from the software developer. Thus, it is typically published as a commercial software that may be sold, licensed or leased by the software developer (vendor) to the end users with terms and conditions.

Some examples of proprietary software are Microsoft Windows, macOS, Adobe photoshop etc.

E. Open source: software code that is freely available. It is typically published as a free software that may be downloaded on various platforms by the end users.

Following is the matched solution for the given question.

I. Web-based - B. software that is hosted on a websiteII. Open source - E. software code that is freely availableIII. Project management - C. software used to track tasks and coordinate resourcesIV. Personal information manager - A. software used to keep track of appointmentsV. Proprietary - D. software which must be purchased.

I. Web-based software refers to applications or programs that are accessed and used through a web browser. Instead of being installed on individual computers, the software is hosted on a server and accessed remotely over the internet.

II. Open source software refers to software whose source code is made available to the public. It can be freely used, modified, and distributed by anyone.

III. Project management software is designed to help teams and individuals manage projects efficiently. It assists in planning, organizing, and tracking tasks, resources, and timelines.

IV. Personal information manager (PIM) software is used to organize personal information such as appointments, contacts, notes, and tasks. It helps individuals manage their schedules, track important dates, and maintain personal productivity.

V. Proprietary software refers to software that is privately owned and controlled by a company or individual. It is typically distributed under licensing agreements, and users must purchase or obtain the necessary licenses to use the software.

Learn more about web-based software here:

brainly.com/question/4560046

#SPJ6

4. What is the difference between head tag and heading tag?​

Answers

Answer 515be559d883f8eab00011e5
head is the tag at the top of your page containing your meta-tags, styles, scripts and title. headings are the h1, h2, h3 etc tags that allow you to size your text. a is an anker usable in the url for navigating to other pages or as in-page navigation.

One of the benefits of holding an investment for over a year rather than selling it in less than a year is that the
A: capital gains on the investment will be taxed at a lower rate.
B: fees will not be charged by brokers for selling the investment.
C: money earned on the investment will be considered tax-free.
D: profits on the investment can be averaged over the length of time the investment
is held.

Answers

Answer:

A, Capital gains on the investment will be taxed at a lower rate.

Explanation:

omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!omae wa mou shindeiru!!!!!!

When do you need to apply for a federal student loan?

Answers

Answer:

Explanation:

In order to apply for federal student loans, you must fill out your FAFSA during a specific time. The federal deadline for completing your FAFSA is generally very forgiving — meaning that it comes very late in the school year.

Other Questions
the dominant intellectual movement of the renaissance was called 2. Mention the type of visual information that they are used for Place the following in the correct order as they occur in CELL RESPIRATION. 1. In cytosol, 6-C glucose and 2 ATP split into two 3-C molecules (glycolysis)2. Acetyl Co-A enters mitochondria and drops off 2-C molecules3. 2-C molecule combines with 4-C molecule and breaks into two 3-C molecules4. Resulting 3 C molecule is stabilized BEFORE entering the mitochondria5. Krebs cycle spins twice; each time stripping 1 carbon to make Co2 as a by-product6. With each cycle of Krebs, electrons and H+ ions pop off, are picked up by NADH and FADH2 and taken to ETC7. Electrons and h+ ions pop off and are picked up by NADH8. 4 molecules of ATP are generated9. Coenzyme A attaches to 2-C molecule making Acetyl Co-A10. 1 C is stripped from 3-C PGA and makes Co2Please help ;( A girl is padaling her blcycle at a velocily of 0.10 km/min. How far will she travel in two hours? the expanded distal end of the fibula is called the The United States is an _____. How did Lavoisier's study of combustion prove that fire was not an element? Help plswhat is the slope intercept form of (-1,8) and (3,6) QUADRATIC EQUATION " WORD PROBLEMSThe sum of two numbers is 5 and their product is 84. Find these numbersThe answer is 12 , -7I just need the steps A model of a plane in different parts of the atmosphere uses a scale of1:2,000. If a plane flies at an altitude of 4,000 feet, how high above groundlevel is the plane in the model?A. 8 ftB. 1/4,000 ftC. 4ft0D. 2 ft What points will you keep in mind while designing your presentation? Which features or elements will you include? who can tell me how to be marked brainliest ion know how What is the western expansion? Choose all the fractions that are equivalent to [tex]\frac{4}{8}[/tex]. (Click all that apply) [tex]\frac{2}{6}[/tex][tex]\frac{8}{16}[/tex][tex]\frac{1}{2}[/tex][tex]\frac{3}{6}[/tex][tex]\frac{5}{10}[/tex][tex]\frac{7}{11}[/tex]I really badly need to know this soon! Identify the zeros of the function allgebraicallyF(x)=x+2 How does damage to the lower respiratory system affect the body? Check all that apply.It prevents oxygen from being delivered to the blood.It prevents blood from moving to the cells.It causes muscles surrounding the lungs to not function properly.It may cause the pH balance of the body to change. C: Joe is a waiter.Last night he made$37 in fips andmakes $8.50 perhour. How much didhe make after his 8hour shift? HELP ASAP ANYONE HELP PLSSS RN help me my people plzzzzzzzzzzz What is the issue facing indigent criminal defendants in Luzerne County?The public defenders office is arguing against the Gideon v. Wainright decision.The protections afforded to the indigent criminal defendants under the Fourth Amendment are being violated by the police.The county attorney in Luzerne is refusing to plea bargain with the public defenders office.The overburdened public defenders office is turning away clients.