Infecting Turtles – HINT

We have to do two different tests. We first have to test whether a turtle is infected. If the answer to this is yes, then we don’t have to worry about infecting it. However, if the answer to this is no, then we have to do another test to find out whether it is in the same patch as an infected turtle. If it isn’t, then we don’t have to infect it. If it is in the same patch as an infected turtle, then we have to infect the healthy turtle as well.

To write this script, think about nesting one test statement inside another. You would first test to see if the turtle is infected, and if the answer is no, then you would do another test to see if it is near an infected turtle. Here’s an example of what your final script might look like… can you fill in the blanks?

Want more help? Click here.

BACK