ping program with explanations please!!!!!

I have the feeling that this thread violates one of our rules:
(6) Do not post classroom or homework problems.