Implement a binary search of an array iteratively. Model your methods after the ones given in Segment 18.13.
Day 5 fprintfThis function is used to format output anything written in single parentheses that becomes a string of text is a string value, or a numerical value see picture below to see the syntax). Example: >> y=input('Enter a number') Enter a number Or >> z = input('Enter Text:','s') Enter Text: Syntax:fprintf(format_string, variables) if you want to use special characters in the string, put ‘/’ In class exercises: Number 3: >> untitled5 f = @(x)(sin(x)).^2+((cos(x)).^2./(sin(x)cos(x))) Enter a number x = [] Y = [] >> untitled5 f = @(x)(sin(x)).^2+((cos(x)).^2./(sin(x)cos(x))) Enter a number[0 pi/8 pi/6 pi/4 pi/2] x = 0