There's a whole world of different ways to get others to be good and to do good. Guilt, shame, humiliation, manipulation, coercion, fear, criticism, belittling. While these may be effective, they are emotionally damaging and, in the long run, will not serve us well. At the very least, they alienate us from the ones we love. They also do not teach correct principles. We should want others to do good because it is the right thing to do, not out of fear or some other negative emotion. Here's where good, open and honest communication works well.
The best way to get others to behave well and to do good is by invitation.
How do we do that?
Being an example is an effective method. Behave the way you would like to see them behave. You are happy. They want to be happy. Eventually, they step out on a limb and try the behavior. It works for them. They become happy. They permanently adopt the change. This, however, is a long-term solution.
In the short-run, here is a series of suggestions to affect a change:
Letting them know how you feel about their bad behavior by using I statements is a very direct method of cluing them in. "I feel unhappy when you talk to me that way." "I am not comfortable with doing this assignment. I don't feel like it is the best way to handle the situation." "I am really feeling tired from trying to keep you happy."
Give them some time
Once you have established how you feel using the I statements, give them some time to process what you've said. Let them know that you want to revisit the conversation in a short while.
There is usually more than one way to skin a cat. Once you've given them some time and space, engage in a conversation and offer some suggestions on how to remedy the situation. Ask them if they have any ideas.
Now that you've had effective dialogue free from harsh accusations and manipulation, and you've expressed your feelings and offered possible solutions invite them to try one of them.
Finish with more "I" statements
"I'm going to be so much more comfortable with handling things this way." "I'm going to feel much more at ease when there isn't so much yelling around here." "I like the way we worked this out."
Reinforce the good behavior
Using genuine compliments as a reward for good behavior is important as a reinforcement. Doing things differently can be difficult. It is good to realize that and have empathy and compassion. They are trying out something that may be very alien to them. Give positive feedback often.