traverses the array until an entry containing account
k
is found or until the last array entry has been considered
while (found != TRUE && loc <= n)
if (a[loc] != k)
loc++;
else
found = TRUE;