Answer:
P(dog) = 12/30 = 0.4 or 40%
Explanation:
We can use the formula for probability:
P(dog) = number of students with a dog / total number of students
To find the number of students with a dog, we can use the fact that 19 students have a dog and 6 students have neither a cat nor a dog:
number of students with a dog = total number of students - number of students with no pets - number of students with only a cat
number of students with a dog = 30 - 6 - 12 = 12
So the probability that a student chosen randomly from the class has a dog is:
P(dog) = 12/30 = 0.4 or 40%