What process at the surface of the Earth is part of the formation of sedimentary rocks?
A. the cycle of day and night
B. water depositing sediment in layers
C. magma rising from the Earth's mantle
D. rain falling into the ocean