Answer: 100/103, 184481/150000
Step-by-step explanation:
Since the sequence is sorted, you can use the binary search, which is of O(lg2). You can google binary search, or inspire from the following.
Basically, the algorithm looks like the following:
checkMiddle(ai, a1,n)
if (n==0) return(-1) // key ai not found
k=(1+n)/2;
if (a_k = ai) return(k)
else
if (a_k>ai
checkMiddle(ai,a_1,k)
else
checkMiddle(ai,a_(k+1),n-k)
endif
You may have to tune and check, but the basic idea is there.
Also, concerning computing algorithms, you are better off with posting it under technology and computers.
25% = 0.25
124 x 0.25 = 31
31 students bought their lunch.
Part = 31
Percent = 25%
Whole = 124
Hope this helps! ✨
A=50 and b=5.............
Answer:
y = -2x/3 +3
Step-by-step explanation:
lets find the gradient first
(11/3 -7/3)/(-1-1) = -2/3
then find the equation by putting gradient and any relative coordinates from the table:
y - -1 = -2/3 ( x - 6)
y = -2x/3 +3