![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 22.03.2021 07:30 mihirkantighosh
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." en, change all occurrences of "sheep" to "goats."
(B) First, change all occurrences of "goats" to "sheep." en, change all occurrences of "sheep" to "goats." Last, change all occurrences of "foxes" to "sheep."
(C) First, change all occurrences of "goats" to "foxes." en, change all occurrences of "sheep" to "goats." Last, change all occurrences of "foxes" to "sheep."
(D) First, change all occurrences of "goats" to "foxes." en, change all occurrences of "foxes" to "sheep." Last, 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?
![ansver](/tpl/images/cats/User.png)
Answers: 3
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 00:30
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 01:00
What phrase indicates someone has knowledge and understanding of computer,internet,mobile devices and related technologies?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 03:30
What best describes the purpose of occupational safety and health administration
Answers: 1
You know the right answer?
A programmer completes the user manual for a video game she has developed and realizes she has rever...
Questions
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/fr.png)
French, 13.04.2020 17:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 13.04.2020 17:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 13.04.2020 17:00
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 13.04.2020 17:01
![question](/tpl/images/cats/mat.png)
Mathematics, 13.04.2020 17:01
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/fizika.png)
Physics, 13.04.2020 17:01
![question](/tpl/images/cats/mat.png)
Mathematics, 13.04.2020 17:01
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/health.png)
Health, 13.04.2020 17:01