in fact, he's done nothing at all beyond declaring some variables and function prototypes (which were probably just copied from the assignment paper).
Do your own homework kama, it's the only way you'll ever learn anything.
Questions like yours make me believe there should be a minimum requirement of a college degree to be allowed onto the internet...