calculated the mass of a solid metal cylinder with a density