A child's whining can be motivated by many different things:…