please explain how % error and % yield would have effected the mass/moles of a substance in a reaction in a lab.

In this case mass/moles of NaCl.
NaHCO3+ HCl--> NaCl + CO2 + H2O

what is the density of an object having a mass of 5.0g and the volume of 45.0cm^3?