write a program that accepts as input the mass (in grames) and density (in grams per cubic centimeters), and output the volume of the object using…