I'm angry at a child that's throwing things at my dog.
What are you going to do about the child throwing things at your dog?
I'm going to yell at the child and tell him to stop.
Yelling at the child may not be the best way to handle the situation. You should tell the child not to hurt the animal. If you don't step in the animal may attack the child.
I don't want my dog hurt and if I have to yell at this child to get him to stop, that's what I'll do.
Depending on the age of the child, they may not understand that their actions could injure the dog or annoy the dog so much that it bites the child. Stop the actions and explain to the child how serious their actions are.