The cat looked at the big dog, and it was terrified.

Who is "it" in this prior sentence?
The cat
Bob cooked omelets for Jack, because he was hungry.

Who is "he" in this prior sentence?
Jack
The cat looked at the big dog, and it barked menacingly.

Who is "it" in this prior sentence?

the big dog