Question: May I please know how to complete the binarysearch.py file? Thank you. Here is the given binarysearch.py file: You are tasked with writing a program
May I please know how to complete the binarysearch.py file? Thank you.


Here is the given binarysearch.py file:

You are tasked with writing a program that will find a number in an array using a binary search. The binary search algorithm starts at the middle of the array and checks if the number specified is what it is looking for, if it not but is greater number to find, you will then proceed to slice the array in half and check the lower half by repeating the same operation, if is neither of those conditions then you will proceed to check the upper half of the array. You will be given a sample array file that will contain a list of numbers. You are also tasked with reading in this file and creating an array. You will need to assume that this array is sorted 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
