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

Please read and carefully follow the directions in the "How to use this forum" post.