Explanation:
The weight of the car is equal to,
...........(1)
Where
m is the mass of car
g is the acceleration due to gravity
The normal or vertical component of the force is, 
or
.............(2)
The horizontal component of the force is, 
Taking ratio of equation (1) and (2) as :



or

Hence, this is the required solution.
For this case you must first know the definition of density.
D = m / v
where,
m: mass
v: volume.
You can then write the following hypothesis:
IF you know two physical characteristics of an object then you can determine the density. First weigh the object, THEN measure its volume BECAUSE the density is the quotient between the mass and the volume of an object.