An upazila health complex wants a computer system for its outpatient department. A patient is registered once, books an appointment, waits for a number to be called, and the doctor's notes are saved. At the end of the month the system sends a disease report to the district office. A software company, Padma Soft (a made-up name), wins the job. The first meeting ends, and the managing director turns to you with the three questions every project manager hears in the first week. How long will it take? How many people do you need? How much will it cost?
The honest answer begins with "it depends". Depends on what? On how big the system really is, how experienced your team is, how often the doctors will change their minds, and what might go wrong in the six months ahead. This chapter is about turning "it depends" into a number you can defend: a size, an effort, a date, a budget, and a list of the risks that could break them.
We will get there in layers. First the manager's job and the reasons projects fail. Then people, because software is made by people. Then measurement: how to say how big a piece of software is, in lines of code and in function points. With a size in hand we estimate effort and time with COCOMO, and look at the complexity of the code itself. Then we put the work on a calendar with the critical path method, PERT and the Gantt chart, and track it with earned value. Last comes risk: what you do about the things that haven't happened yet.