If else statements

Please have a look at our homework policy, homework inspired questions are welcome but they should not include verbatim instructions from your course.