The formula for the density is d=m/v. d=the density m=the mass of the sample (in this case 1.75g) v=the volume (in this case 0.50cm³) when you plug everything in you should find that the density of diamond is 3.5g/cm³.
I hope that helps. Let me know if anything is unclear.