Q#4 Input

Answered all parts for question number 4.