subject

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
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:20
What is a point-in-time measurement of system performance?
Answers: 3
question
Computers and Technology, 23.06.2019 07:10
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Write a grading program for a class with the following grading policies: a. there are two quizzes, each graded on the basis of 10 points. b. there is one midterm exam and one final exam, each graded on the basis of 100 points. c. the final exam counts for 50% of the grade, the midterm counts for 25%, and the two quizzes together count for a total of 25%. (do not forget to normalize the quiz scores. they should be converted to a percentage before they are averaged in.) any grade of 90 or more is an a, any grade of 80 or more (but less than 90) is a b, any grade of 70 or more (but less than 80) is a c, any grade of 60 or more (but less than 70) is a d, and any grade below 60 is an f. the program will read in the student’s scores and output the student’s record, which consists of two quiz and two exam scores as well as the student’s average numeric score for the entire course and final letter grade. define and use a structure for the student reco
Answers: 2
question
Computers and Technology, 23.06.2019 19:00
Choose the correct citation for the case which established the "minimum contacts" test for a court's jurisdiction in a case. select one: a. brown v. board of education of topeka, 347 u.s. 483 (1954). b. international shoe co. v. washington, 326 u.s. 310 (1945) c. haynes v. gore, 531 u.s. 98 (2000). d. international shoe co. v. washington, 14 u.s. code 336.
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
Social Studies, 17.12.2019 23:31
question
History, 17.12.2019 23:31
Questions on the website: 13722361