Maddening Midterm

I have spent the last four hours trying to do if, elsif, and else with this and got nowhere...  Urghhh! Humph! Aya!... Well, thank you for all your help. Apologies for it not being more well-rounded or robust.