density=mass/volume. I wouldn't use average values, though: too many margins of error.
Or, you could cut a cube from a pumpkin and weight it*. The volume of a cube is easy to measure.
*Edit... well, you won't account for the difference between the pulp and the skin, but I think it's an approximation you could live with.