Archimedes's Principle:

 
Input: Output:
Mass = Density =
Volume =