Bank of America Interview Question
Software Engineer / DevelopersCountry: United States
Interview Type: In-Person
yes, and that would imply the level of water will decrese, since the volume of rock will be less than the volume of water equivalent to that weight to the rock.
This answer should be correct. And we should point out the density of the rock decide the level of the water.
If the rock is a floatstone which density is less than water. the level will increase.
If the densities are equal, level will not change.
Else, like perlscar said.
The level of the water should be lower compared to L1, the reasons are explained as following:
case (I), boat + rock are in an equlibrium state which means: floating force generated by water == gravitational force of the boat+rock, in physics language
rho * Volume_water * g = (m_rock + m_boat) *g
case (II), boat is still in an equilibrium state (floating force== gravitational force) however the rock must go to the bottom of the water as it has much larger density (floating force << gravitational force)
so rho * Volume_water * g << (m_rock+m_boat) *g
to conclude, Volume_water_1 > Volume_water_2
so, water_level_2 < water_level_1
imagine a swimming pool. measure the water line on the side of the pool. L(0). now, drop a very big rock into that pool. That rock will displace water equal to its volume - effectively, pushing that water 'up' e.g. the water line will rise to L(1).
the rock sinks since the water displaced by the rock's volume is not enough to make it float
now - add a row boat and put the rock into the row boat. If the boat does not sink, the boat+rock is displacing *more water* than just the rock alone. Why? b/c the boat is floating the rock. Hence, the water line will be even higher - L(2).
L(2) - boat+rock water displacement is highest (since both rock and boat are floating); the water displaced produces a buoyant force enough to counteract gravitational pull on boat+rock.
L(1) - just the big rock, displacing its volume in water (but that's not enough to make it float)
L(0) - nothing in water; water line is at its lowest point on the side of the pool
Boat is a tool to displace enough water to counteract the force of gravity acting on the objects in the boat (and the boat itself).
A very heavy object would require a boat that displaced even more water - to create even more buoyant force - to counteract the naturally existing force of gravity acting on the object.
If the boat does not displace enough water to support the weight of the objects in it, the boat will naturally sink.
The level of water in in pool will remain same, the boat will be less dipped in water after throwing rock in water.
Explanation:
Initially volume of water displaced = Vi
volume of water displaced after rock is thrown = Va
density of water = dw
density of rock = dr
weight of boat = wb
weight of rock = wr
Vi = (wb + wr) / dw
Va = (wr/dr) + (wb/dw) = volume of rock + water displaced by boat
Assume no change in water level
Vi = Va
=> dw = dr
This means
if( dw < dr)
=> Vi < Va
=> The level of water will rise.
And
if( dw > dr)
=> Vi > Va
=> The level of water will fall.
Well, that's what I said, but interviewer did not seem to agree though he did not give me an answer, so wondering if there is more to it.
Well Archimedes' principle has to do with the "weight of the liquid" and not so much with the volume displaced... but his famous "Eureka" story showed why the crown sunk in the bathtub... and that's the only explanation I can think of...
With the rock in the boat, the entire weight of the rock pushes the boat into the water. But when the rock is submerged, only its volume and not its weight is displaced. Since the rock is denser that water (presumably), then less water is displaced when the rock is submerged. The boat rises, and the water level falls.
Well when the rock was on boat the amount of water displayed by it was equal to the volume of water equal to rocks mass (Archimedes Principle). When the rock sinked to the bottom the amount of water displayed by it was equivalent to the volume of the rock.
- The Artist October 16, 2012