Help with this code and its algorithm¡¡¡¡¡¡

what I look for is to understand each void function as they work

For a beginner, that may take hours or even days of study.

Do not be discouraged, and if you have specific questions about particular lines of code, post them on this forum.