A composite body is a combination of bodies with simpler shapes connected to form a whole entity. Knowing the center of gravity of each part and its weight, the center of gravity of the composite body can be determined. If the density of the composite body is constant, its center of gravity coincides with the centroid of the body. A hammer is an example of a composite body with different densities. It consists of two main parts, each with its own weight and center of gravity. To find the center of gravity of the hammer, the weight and center of gravity of each part are taken into account. Evaluating the center of gravity of a hammer helps predict its performance. If it is closer to the head, the hammer is better for driving nails, while if it is closer to the handle, it is easier to hold and control the hammer for precision work.