Thank you for spotting those typos. They should be fixed as soon as possible.
The row 6 from the rubric requires 2 algorithms and 1 of them must have the math/logic. The point is not awarded if the code consists of solely library calls. I think that is why the first chunk, as written, cannot be counted as student developed which makes the 2nd chunk moot.