homework 6 submission

This is a case where you want "else if"s not "if"s because you only want one of these 4 things to happen. As you've written it, multiple ones may happen.