Creating iterate over an enumerated list

Please read the pinned thread in order to understand how to post code with proper formatting, so that we can properly understand the current state of the code. Then carefully think about the problem and use your own words to ask a question, instead of just copying and pasting from a homework assignment. The assignment tells us many things that any experiences programmer will already know, and it tells us a description of a problem; but it does not tell us where you are having difficulty, or why.