//Example 11.10 m_w=8.630-7.800;//Mass of water displaced = apparent loss of mass, (g) rho_w=1;//Density of water (g/cm^3) V_w=m_w/rho_w;//Volume of water displaced (cm^3) V_c=V_w;//Volume of coin = volume of water displaced, (cm^3) m_c=8.630;//Mass of coin (g) rho_c=m_c/V_c;//Density of coin (g/cm^3) printf('Density of the coin = %0.1f g/cm^3',rho_c) //Openstax - College Physics //Download for free at http://cnx.org/content/col11406/latest