For the list {allen, barry, christopher, daisy, garry, sandy, zac}, what is the second name searched when the list is searched for garry using binary search?

Answers

Answer 1

The second name searched when the list is searched for Garry using binary search will be Sandy.

Finding an element's location in a sorted array can be done using the searching method known as binary search. With this method, an array's middle is always searched for the element. Only on a list of things that has been sorted can binary search be used. We must first sort the elements if they are not already sorted.

A search known as a linear search locates an element in a list by looking up each element in turn until it is located in the list. A binary search, on the other hand, locates the list's middle element repeatedly until the middle element matches a searched element.

Learn more about binary search:

https://brainly.com/question/21475482

#SPJ4


Related Questions

Which of the following explains different types of efficiency? (1 p
O Code length refers to the number of characters in the code. Code cc
O Code complexity refers to the number of characters in the code. Coc
O Time complexity refers to the amount of memory used. Space compl
O Space complexity refers to the amount of memory used. Time comple

Answers

Answer:

the third one os the second one

Explanation:

Which tab should you click if you want to add a caption for a picture or image in your Word document?

a. file
b. home
c. layout
d. references
e. mailings

Answers

Answer:

References

Explanation:

What is the command you would use to execute a java program where the main() function is contained in a class called flightcontroller?

Answers

The command that would be used to execute a java program where the main() function is contained in a class called flightcontrolle java FlightController.

A Java programme can be thought of as a collection of objects that interact by calling each other's methods. Now let's take a quick look at the definitions of class, object, methods, and instance variables.

A language for object-oriented programming is Java. The classes and objects in Java, along with their characteristics and methods, are the foundation of everything. For instance, an automobile is an object in the actual world. The car contains characteristics like weight and colour, as well as functions like drive and brake.

There are four platforms of the Java programming language:

1. Java Platform, Standard Edition (Java SE)

2. Java Platform, Enterprise Edition (Java EE)

3. Java Platform, Micro Edition (Java ME)

4. Java FX.

Learn more about java program:

https://brainly.com/question/26642771

#SPJ4

Miriam recently lost a considerable amount of weight. Her heart races when she gets on the bus for school, and she gets frequent headaches. Her mind is constantly focused on negative thoughts about school.

Miriam’s symptoms are signs that she should seek professional help for which mental health condition?

apathy
anxiety
sensitivity
impulsiveness

Answers

The answer would be anxiety

Answer: B

Explanation:

Your network follows the 100base-fx specifications for fast ethernet and uses half-duplex multimode cable. What is the maximum cable segment length allowed?.

Answers

Answer: Fiber optic cabling  usually needs interduct to protect it as the cable is fragile and expensive if you break it

On half-duplex links, the segment length cannot exceed 412 m. Either SC, MIC, or ST fiber optic connectors can be used, but SC is recommended.As an example, a 100BASE-FX fiber optic segment using a typical multimode fiber optic cable is limited to segment lengths of 412 meters (1351.6 feet) in half-duplex mode.

Which internet protocol (ip) v6 header field is used to determine the quality of service level for a datagram?

Answers

The quality of service level for a datagram is determined by the flow label internet protocol (ip) v6 header field.

To determine the quality of service level for a particular datagram, routers employ the flow label field in conjunction with the traffic class field. A flow is a set of packets that are sent in succession from a specific source to a specific unicast or multicast destination. The intervening routers must also handle the source specifically.

A control protocol may inform the routers of the unique handling's nature. A resource reservation protocol could be the control protocol.

Learn more about ipv6 https://brainly.com/question/15733937

#SPJ6

What is the command to list the top 10 files that use the most disk space in linux?

Answers

Type du -a /dir/ | sort -n -r | head -n 20. du will calculate the file space used. The sort will sort out the output of a du command.

Why is Linux used? Linux is an open source operating system (OS). An operating system, which is a piece of software, is directly in charge of managing the hardware and resources of a system, including the CPU, memory, and storage. By sitting between applications and hardware, the operating system (OS) creates connections between all of your software and the operational physical resources. Many of the gadgets you likely own, such as Android smartphones, tablets, and Chromebooks, as well as digital storage, cameras, wearable technology, personal video recorders, and more, all support Linux.  Your automobile has Linux running on the inside. Linux is an open-source alternative to Windows OS, which is a for-profit operating system.

To learn more about Linux, refer to:

https://brainly.com/question/25480553

#SPJ4

You need to trace the route that a cat 6 utp cable takes through the ceiling and walls of your building. which tool should you use?

Answers

We should use Tone Generator to to trace the route that a cat 6 utp cable takes through the ceiling and walls of your building. The tone generator can be used to test the speakers and their electrical wiring, as well as to find the frequency of hearing loss and tinnitus.

A sinusoidal signal is produced by a tone generator at the selected frequency. Can be used as a learning tool for physics as well as to test audio equipment like speakers or earbuds. You may also test the frequency range of tablet speakers.

Learn more about tone generator https://brainly.com/question/28017740

#SPJ4

Which hardware part would you check if the computer keeps turning off but the hdd and ram are positive?

Answers

The power supply unit should be checked if the computer keeps turning off but the hard disk drive and RAM are positive.

The power supply unit is abbreviated as PSU and is the hardware component that performs the role of electric power supply to the computer as it converts the alternating current to low voltage direct current. A rectifier is the part of the power supply unit that converts alternating current to low voltage direct current. The transformer inside the power supply unit manages the voltage received by PSU while the part known as the voltage operator manages the direct current supplied by the power supply unit.

If the power supply unit is not working properly it may cause the computer to shut down arbitrarily as all the components of the computer require power and if they don't receive the desired power they won't function which will cause the computer to shut down. When the power supply unit is damaged, it may smoke if more than the normal amount of electricity passes through it.

A bad power supply unit generally does not affect the RAM or hard disk drive so if the RAM and hard disk are checked to be functioning properly then the power supply unit should be checked.

To learn more about power supply unit, click here

https://brainly.com/question/24249197

#SPJ4

What computer component performs calculations and is known as the 'brains' of the computer?

Answers

In computers, the Central Processing Unit (CPU) is the primary component that performs all calculations and is considered as the brain of the computers.

The CPU is the base of a computer's operations that performs all calculations necessary to process instructions. It is the CPU that handles data processing in the computers by interpreting and executing instructions. The CPU is also called the brain of the computer.

The CPU is the core component in computers that handles data manipulations, processes instructions, runs programs, enables communication with input, output and storage devices, and regulates all external and internal devices. That is why this component of the computer is also referred to as the decision maker or brain of the computer. Because, it can calculate and perform millions of artihmatic calculation in just a nanosecond.

The CPU can perform such arithmatics and logic calculations, that are mostly performed by arithmatic logic unit ALU of the CPU.

The CPU performs calculations on data in three Steps:

Fetch: The CPU receives the data through input devices. Decode: The CPU processes the input data by performing calculations with pre-implemented algorithms. Execute: The CPU sends the processed data to output devices.  

You can learn more about Central Processing Units (CPU) at

https://brainly.com/question/474553

#SPJ4

Which xxx and yyy will find the minimum value of all the elements in the array? choices are in the form xxx / yyy.

Answers

userVals[i][j] < minVal / minVal = userVals[i][j] XXX and YYY will find the minimum value of all the elements in the array Choices are in the form XXX / YYY.

int userVals[NUM_ROWS][NUM_COLS];

int minVal = userVals[0][0];

for (i = 0; i < NUM_ROWS; ++i) {

for (j = 0; j < NUM_COLS; ++j) {

if (XXX) {

YYY;

}

}

}

We often need to find the minimum value in an array of numbers. There are a few different ways to do this, but the most straightforward is to use a for loop.

We start by assuming that the first element in the array is the minimum. Then, we compare this value to every other element in the array. If we find a smaller number, we know that this is the new minimum.

Here's the code:

int userVals[NUM_ROWS][NUM_COLS];

int minVal = userVals[0][0];

for (i = 0; i < NUM_ROWS; ++i) {

for (j = 0; j < NUM_COLS; ++j) {

if (userVals[i][j] < minVal) {

minVal = userVals[i][j];

}

}

}

You can see that we're just looping through all the elements in the array and keeping track of the smallest number we've seen so far.

There are a few different ways to find the minimum value in an array, but this is the most straightforward. Give it a try the next time you need to find the minimum value in an array!

Learn more on array here:

https://brainly.com/question/28565733

#SPJ4

When using storage phosphor plates what equipment is necessary in addition to computer software?

Answers

When using storage phosphor plates (SPPs), you will need a few pieces of equipment in addition to computer software. First, you will need a phosphor reader, which is a device that converts the latent image on the SPP into an electrical signal. This signal can then be digitized and displayed on a computer.

Second, you will need a storage phosphor imager, which is a device that captures the electrical signal from the phosphor reader and converts it into a digital image. This digital image can then be viewed on a computer screen or printed out.

Lastly, you will need a computer with software that can process the digital image. This software is used to enhance the image, make measurements, and perform other analysis.

With the proper hardware, software, and storage system, you'll be able to fully utilize the benefits of storage phosphor plates.

Learn more on phosphor plates here:

https://brainly.com/question/14341452

#SPJ4

John wants to know the amount of ram memory installed on his computer. in which category of the windows 7 control panel can this information be found?

Answers

John can find the amount of Random Access Memory (RAM) memory installed on his computer with the Windows 7 under the category “System and Security” in the Control Panel.

To know the total amount of installed RAM through Control Panel in the computer with Windows 7, John should follow the steps as:

Click the Windows key Type Control Panel Click the category named “System and Security” Now under “System”, click “View amount of RAM and processor speed” “Device Specifications” section displays the amount of installed RAM in John’s computer

Thus, above are the steps by which John’s can find the amount of installed RAM in his Windows 7 computer’s Control Panel.

What is Random Access Memory (RAM)?

RAM is the temporary memory in computers that stores the data currently being used by the processor.

You can learn more about Control Panel at

https://brainly.com/question/1445737

#SPJ4

Given positive integer num_insects, write a while loop that prints that number doubled up to, but without exceeding 100. Follow each number with a space.

Answers

This question requires to write a program that uses a  “while loop" and prints the double of a given positive integer type number named “num_intsects” up to the limit of 100. The result of a “double” should not exceed 100. And, the output needs to be printed in a single line in which each doubled number value is followed by a space.

Following is the required program written in Python:

num_insects =   int(input('Enter a positive number:   '))    # Defines a variable  named num_insect to input a positive integer number  

while num_insects <= 100:  # while loop that checks the num_insects                        does not exceed 100. Inside the body of while loop num_ insects is doubled and its result is printed

print(num_insects, end=' ')  # Prints the computed result and a white space

num_insects *=2  # Doubles the num_insects and stores computed double value in it

You can learn more about while loop in python at

https://brainly.com/question/23419814

#SPJ4

Use the ______ element to create a generic area or section on a web page that is physically separated from others

Answers

Use the div element to create a generic area or section on a web page that is physically separated from others.

In the field of computers, div can be described as a special container that is used in order to make a specific generic area or a particular section on a web page.

The 'div' element stands for division as this element causes a division to be made on the webpage. The div tags are used for multiple purposes such as web layouts.

It is due to the div element that content can be grouped in a webpage that makes it look more attractive and reliable. Without the div element, data will not be understood properly on a webpage and might be misunderstood by the reader.

To learn more about a webpage, click here:

https://brainly.com/question/14552969

#SPJ4

Digital manufacturing combines _____ to manufacture products. (check all that apply.)

Answers

Digital manufacturing combines human control, machines, and computers to manufacture products.

Digital manufacturing is the simultaneous defining of a product and a manufacturing process through the use of an integrated computer-based system including simulation, 3D visualization, analytics, and collaborative tools. Design for Manufacturability (DFM), computer-integrated manufacturing (CIM), flexible manufacturing, and lean manufacturing are examples of manufacturing initiatives that have given rise to digital manufacturing.

Digital manufacturing is a key point of integration between PLM and shop floor applications and equipment By minimizing costly downstream adjustments, this alignment enables manufacturing businesses to obtain cost savings while meeting time-to-market and volume requirements.

Learn more about manufacturing https://brainly.com/question/28384697

#SPJ4

The addition or removal of users from a wired network by an administrator is an example of:_________

Answers

The expansion or reduction of users from a wired network by an administrator is a sample of Ethernet.

What is the wired network?Devices, including laptops and desktop computers, are connected to the Internet or another network via cables in a wired network. Compared to a wireless network, a wired network has some drawbacks. The fact that your gadget is connected to a router is its main drawback. A wired network uses wires to connect devices, including laptops and desktop PCs, to the Internet or another network. (a) Wireless Network: A wireless network is one that uses electromagnetic (EM) or infrared (IR) waves as its transmission medium instead of a wire. All wireless gadgets will have antennas or sensors. While an Ethernet connection sends data by cable, a WiFi connection sends it over wireless waves.

To learn more about wired network, refer to:

https://brainly.com/question/27820341

#SPJ4

To write data to a file, you define an object of type _________. to read data from a file, you define an object of type _________.

Answers

To write data to a file, you define an object of type fstream to read data from a file, you define an object of type ofstream. The correct options are c and d.

What is data?

Data is an amount of information and collection that is recorded and saved for a gathering of information that is used in the future. Data is of various kinds.

In a computer, data files are saved and all the things that happen in the computer are saved in the computer memory.

C++ Files and Streams are fstreams and ofstream is a C++ output file stream.

Therefore, the correct option is c, ofstream, and d, fstream.

To learn more about data, refer to the link:

https://brainly.com/question/11941925

#SPJ1

The question is incomplete. Your most probably complete question is given below:

inputFile

ifstream  

ofstream  

fstream

How do Bluetooth devices connect with a computer?
A. the devices are connected by a SATA cable
OB. the devices are connected by radio frequency Instead of a cable
OC. the devices are physically connected via USB
OD. the devices are connected by a driver

Answers

Answer:

OB

Explanation:

The answer to the question is OV

Give three reasons why assembly-line processes are more efficient but less flexible than batch processes?

Answers

Three reasons why assembly line processes are more efficient but less flexible then batch processes.

1. Assembly lines leverage economies of scale, they are typically more effective than batch procedures. In other words, they include producing a lot of goods, which lowers the cost of producing each item individually. When buying in volume, manufacturers may frequently get things at a bargain.

2. Products are produced in batches using a batch method, whereas manufacturing runs continuously on an assembly line. Making a loaf of bread, for instance, is an example of a batch process, whereas manufacturing cars is an example of an assembly line process.

3. While modifications in design and functionality are conceivable in the batch process, they are much more challenging to implement in an assembly line due to the continual production of various parts. In a batch process, a baker might alter the type of flour in response to a customer's request, while a car manufacturer using an assembly line approach would not be able to alter the design of the vehicle.

Learn more about assembly line:

https://brainly.com/question/26948522

#SPJ4

A user reports that her monitor will not allow her to switch back-and-forth between Microsoft Word and the Internet explorer. This points to a possible problem with which function of the operating system 

Answers

Answer: In a multiprogrammed system, the CPU is always able to share its time between the various programs and the different peripheral devices that need your attention, requiring a mechanism that allows the CPU to change between one software and another without problems.

The interruption mechanism was the basis for the implementation of the schematic parallelism between CPU and different software. For this reason, we can say that if a user reports that the computer monitor does not allow him to switch between Microsoft Word and Internet Explorer. This points to a possible problem with the interrupt mechanism.

In a client/server network, the ____________________ host the resources for the clients to use and provide security.

Answers

In a client/server network, the server host the resources for the clients to use and provide security.

A server in computing is a piece of hardware or software (a computer program) that offers functionality to other programs or objects, referred to as "clients."

Many of the functions that servers can offer are referred to as "services," such as executing computation for a client or sharing data or resources among many clients. Both a single client and a single server can accommodate many clients. A client process can run on a single device or connect to a server running on a different device through a network.

Learn more about client/server network https://brainly.com/question/28099574

#SPJ4

Simon has noticed that his computer seems to be pretty slow. Which Item should he check to Improve his computer's speed?
OA power supply unit
OB. cache
OC read-only memory
OD. pixel

Answers

Answer: OA

Explanation: Power supply going bad, the computer will start to lag, go slower and slower, the clock and date will slow down and mess up, you will not be able to multi-task either ...replace the power supply ....

By inspecting the raw data in the packet content window, do you see any headers within the data that are not displayed in the packet-listing window? if so, name one.

Answers

No, even though the raw data and the information displayed in the packet-listing window appear to match identically, we don't see any headers.

Describe the HTTP GET Method.

When requesting data from a specific source, the HTTP (HyperText Transfer Protocol) GET method is utilized. Additionally, it can be used to isolate a certain variable from a group. The HTTP POST method asks the providing browser to send data into the server's message system. The GET method and the POST method can both be used to access HTML structures. Whether the POST method or the GET method is chosen, it will affect how form data is sent to the server. For Example-

GET /hello.htm HTTP/1.1

User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)

Host: www.checkers.com

Accept-Language: en-us

Accept-Encoding: gzip, deflate

Connection: Keep-Alive

Learn more about HTTP here:

https://brainly.com/question/13152961

#SPJ4

The __________ in suzi's computer is responsible for the operation sent to it by the software.

Answers

The CPU  in suzi's computer is responsible for the operation sent to it by the software.

What is CPU of a computer?

A central processing unit (CPU), is known to be a term that is often called the  central processor.

It is known to be the key  processor that act as the electronic circuitry that carry out instructions and it is one that is made up of  a computer program.

Therefore, The CPU  in suzi's computer is responsible for the operation sent to it by the software.

Learn more about CPU   from

https://brainly.com/question/26991245

#SPJ1

Devices which collect personal health data are:___.
a. outdated.
b. never going to be used.
c. cool.
d. wearable.

Answers

Devices that collect personal health data are wearable. Thus, the correct option to this question is (d) wearable.

The terms wearable devices refer to small electronic and mobile devices with sensors and wireless communication capability that are embedded into accessories, gadgets, or clothes, which can be worn by the humans. The wearable devices, when worn by the person, use sensors to collect personal health data.  

The wearable devices, when placed on the personal body, can measure health data such as heartbeat, breathing rate, temperature, glucose level, blood oxygen, and blood pressure as well as electrical activity of the brain, heart, skin and muscles.  

The wearable devices provide aid to detect major health problems in the early stages. The wearable devices are increasingly helping people to better monitor health status both at personal and medical level.  

Other options are incorrect because:

Outdated: Outdated means not in use anymore. But wearable health devices are a way forward to get insight about personal health. Never going to be used: With the technological advancements, the potential future of wearable devices to collect personal health data will be increasing. Cool: Not a suitable term to answer the question.

You can learn more about wearable devices at

https://brainly.com/question/20885018

#SPJ4

group of artists is making a website. When should they use classes?
A. They want to make their h3 tags bigger than their h1 tags.
B. They want headings to be one color, but paragraphs to be a different color.
C. They want some images to float left, and other images to float right.
D. They want all the pages on their site to have the same style.
E. They want make a special color using RGB codes.

Answers

When they want some images to float left, and other images to float right then they can use classes. The correct option is C.

What is a website?

A website is a collection of World Wide Web pages that are usually linked to one another and are made available online by an individual, company, educational institution, government, or organization.

CSS and JavaScript can use classes to select and access specific elements using class selectors or functions like the DOM method document.

Artists can use classes to make some images float to the left and others float to the right.

Thus, the correct option is C.

For more details regarding websites, visit:

https://brainly.com/question/19459381

#SPJ1

_______ reality allows physical and virtual elements to interact with one another in an environment; it is not a fully immersive experience because it maintains connections to the real world.

Answers

Augmented reality allows physical and virtual elements to interact with one another in an environment; it is not a fully immersive experience because it maintains connections to the real world.

Augmented reality is a term used to describe the process of overlaying digital images onto the real world to escalate them with digital attributes. It uses the physical world environment and connects it with virtual data. In addition to this connection, augmented reality comes up with real-time interaction and three-dimensional registration of virtual and real things.

Sensors, processors, display units, and different input devices make up the hardware units of augmented reality. The display allows the images of both the virtual and physical world to be placed over the user's area of view.

It is playing a major role in enhancing the gaming, commerce, and literature fields. It also plays role in architecture by providing three-dimensional visualization of 2D drawings.

To learn more about augmented reality, click here:

https://brainly.com/question/9054673

#SPJ4

Write a while loop that divides usernum by 2 while usernum is greater than 1, displaying the result after each division. ex: for usernum = 40, output is: 20 10 5 2.5 1.25 0.625

Answers

import java.util.Scanner;

public class DivideIntoHalfLoop {

   public static void main (String [] args) {

      int userNum = 0;

      userNum = 40;

      while (userNum>=1) {

         System.out.print(userNum/2 +" ");

         userNum=userNum/2;

      }

      System.out.println("");

      return;

   }

}

Follow the link below to the difference between while loop and for loop

https://brainly.com/question/19344465

#SPJ4

When yahoo! makes decisions about whether or not to collect personal information about customers when they use its website, this is an example of?

Answers

When yahoo! makes decisions about whether to collect personal information about customers when they use its website, this is an example of an ethical issue.

Who is a customer?

A customer is a person who places an order for a product, pays for a product or service, and then receives it. He or she can also be a user of the things or services that are being provided. 

Yahoo! decided that they would not be collecting personal information of the client as this is the topic of personal privacy, then the company has shown some ethical values and beliefs and the company has respected them.

Learn more about customer, here:

https://brainly.com/question/13472502

#SPJ1

Other Questions
From 125 yards away, a marksman hit 55.6 of the targets last year. Evaluate each function for the given value of x , and write the input x and output f(x) as an ordered pair. f(x) = (2/9)x - (9/2) for x=9 Who among the following patients is likely to be better adjusted and most successful in coping with hiv infection? The sum of two numbers is 14 . One number is 2 less than the other. Find the numbers. inconviniants reseaux sociaux The function of a __________ molecule depends on its __________ and how it interacts with other protein molecules. An organism has two copies of a __________ for each feature. The two copies of a gene for each feature can be the same version (__________) and provide instructions for only __________ type of protein. The two copies of a gene for each feature can be different versions (__________) and provide instructions for __________ types of proteins. Organisms inherit their genes through __________ reproduction. Each parent __________ passes on one of its two copies of each gene to its __________. Through sexual reproduction, each offspring can __________ a different combination of gene versions. Therefore, __________ can have different traits from each other and even from their parents. onerandomlygenehomozygousstructureoffspringsexualsiblingsheterozygoustwoinheritprotein why did great britian pass the navigation acts? This dna integrates with the host dna and more ____________ can be copied from this to biosynthesize hiv. Help me asp with number 4 The length of a bacterial cell is about 4 x 106 m, and the length of an amoeba cell is about 2.5 x 104 m. How many times smaller is the bacterial cell than the amoeba cell? Write the final answer in scientific notation with the correct number of significant digits.6.25 x 1022 x 1026 x 10116 x 101 A city has 73,400 voters. According to a survey, 96% of them will vote to support a local measure. How many people will votefor this measure? Are the graphs of each pair of equations parallel, perpendicular, or neither? _____ refers to the ability of the heart, blood vessels, and lungs to supply oxygen to working muscles during physical activity for prolonged periods of time. Write about 3-4 sentences on the extent to which (how much) Jamestown was a successful colony. A graph of velocity vs. time of a ship coming into a harbor is shown.How would you describe the acceleration of the ship based on the graph?The ship is moving in the forward direction at a steady rate. Then it deceleratesin the forward direction, and then continues to slow down in the forwarddirection, but with more deceleration.The ship is moving in the forward direction at a steady rate. Then it deceleratesin the forward direction, and then continues to slow down in the forwarddirection, but with less deceleration.The ship is moving in the forward direction at a steady rate. Then it turns aroundand starts decelerating, while traveling in the reverse direction. It thenaccelerates, but slowly.The ship is moving in the forward direction at a steady rate. Then it acceleratesin the forward direction and then decelerates. Which of the following is the greatest number of times your heart can beat in one minute?Target Heart RateResting Heart RateMaximum Heart RateBeat Pulse Measurement What must the charge (sign and magnitude) of a 1.45 gg particle be for it to remain stationary when placed in a downward-directed electric field of magnitude 530 n/cn/c? What three resources play a major role in the development in a country? Determin whether the relation defines a function, and give the domain and range. Find the slope of the line.c. the line containing (4,2) and (4,-3)