Changing Words in a User Manual for a Video Game

A programmer completes the user manual for a video game she has developed and realizes she has reversed the roles of goats and sheep throughout the text.

Consider the programmer's goal of changing all occurrences of "goats" to "sheep" and all occurrences of "sheep" to "goats." The programmer will use the fact that the word "foxes" does not appear anywhere in the original text.

Which of the following algorithms can be used to accomplish the programmer's goal?

(A) First, change all occurrences of "goats" to "sheep." Then, change all occurrences of "sheep" to "goats."

(B) First, change all occurrences of "goats" to "sheep." Then, change all occurrences of "sheep" to "goats." Lastly, change all occurrences of "foxes" to "sheep."

(C) First, change all occurrences of "goats" to "foxes." Then, change all occurrences of "sheep" to "goats." Lastly, change all occurrences of "foxes" to "sheep."

(D) First, change all occurrences of "goats" to "foxes." Then, change all occurrences of "foxes" to "sheep." Lastly, change all occurrences of "sheep" to "goats."

I know that the answer is C but can someone explain to me why the answer is C? It is C) First, change all occurrences of "goats" to "foxes." Then, change all occurrences of "sheep" to "goats." Lastly, change all occurrences of "foxes" to "sheep."
← About me web page Vehicle diagnostic trouble codes understanding dtcs in vehicles →