Geek, I don't think you realise what is going on here. I tried to give a hint, but you didn't take it up.
I'll try to make it simple.
1. The OP, webdev57, is not seeking help to write some code. He or she is seeking help with a school or college assignment.
2. The assignment is to read a program, written in a pseudocode and answer questions about how it would work.
3. How it would work, that is, if it were a real programming language.
4. The pseudocode contains structures and logic found in programming languages.
5. That is what I meant about teaching language but it evidently passed you by.
6. The above is obvious from the format of the original post, in my opinion.