Second prompt has been added with its comment and an if statement has been added along with a comment.