Which process turns sediment into sedimentary rock?

melting and cooling


compaction and cementation of sediment


weathering and erosion


plants or animals becoming trapped between layers of sediment