What is the software development life cycle (SDLC), and how does it ensure the successful delivery of software projects? Discuss the stages of SDLC such as planning, design, development, testing, and deployment, and the methodologies used (e.g., Agile, Waterfall).