A project plan tells what will be done, by whom, in what time and at what cost. It is the basis for control during the project.
Software Pricing
The price charged to a customer is not just the development cost plus profit. It also depends on market opportunity, since a company may price low to win a contract, on the uncertainty of the estimate, on the contractual terms such as who owns the code, on requirements volatility, and on the financial health of the developer. The cost is estimated from the effort, which is mostly the salaries of the staff, plus the cost of hardware, travel and training.
Definition: Project plan. A document that states the activities, resources, schedule, cost and risks of a project, and the way in which progress will be controlled.
Plan-Driven Development
In plan-driven development the work is planned in detail at the start. The plan sets out the tasks, the milestones, which are points at which progress can be checked, and the deliverables, the products that are handed over. The plan also describes the team structure, the schedule, the risks, the quality and the way in which changes will be controlled. The plan is updated as the project proceeds.
Project Scheduling
Project scheduling divides the work into tasks, estimates the time and effort for each, finds the order in which they must be done, and assigns staff. A work breakdown structure splits the project into smaller tasks. The tasks are then shown in a Gantt chart, a bar chart of tasks against time, and in a network diagram. The critical path is the longest path through the network, and it decides the shortest time in which the project can finish. A delay of any task on the critical path delays the whole project, while tasks off the critical path have slack.
Table 2.6: Tools for scheduling
| Tool | Shows | Use |
|---|---|---|
| Work breakdown structure | Tasks and subtasks | Listing the work |
| Gantt chart | Tasks against time | Tracking progress |
| Network diagram | Order and dependency | Finding the critical path |
| Milestones | Checkpoints | Measuring progress |
Example 2.6: Critical path
Problem: Tasks and durations in days are A (3), B (4, after A), C (2, after A) and D (3, after B and C). Find the shortest project time and the critical path.
Solution:
- Path A-B-D takes 3 + 4 + 3 = 10 days.
- Path A-C-D takes 3 + 2 + 3 = 8 days.
- The longest path is the critical path.
Result: The project takes at least 10 days, and the critical path is A-B-D. Task C has 2 days of slack.
paths = {"A-B-D": [3, 4, 3], "A-C-D": [3, 2, 3]}
for name, d in paths.items():
print(name, sum(d))
best = max(paths, key=lambda k: sum(paths[k]))
slack = sum(paths[best]) - sum(paths["A-C-D"])
print("critical:", best, "slack of C:", slack)
Output
A-B-D 10
A-C-D 8
critical: A-B-D slack of C: 2
Common mistakes
- Treating the price as only cost plus profit.
- Assuming that any delay changes the project end date. Only a delay on the critical path does.
- Making a schedule without allowing time for testing and rework.
Key takeaways
- A plan lists tasks, milestones, deliverables, schedule and risks.
- A Gantt chart shows tasks against time.
- The critical path is the longest path and fixes the minimum project time.
- Tasks off the critical path have slack.
Practice questions
- What is a milestone?
- What is the critical path?
- What is slack?
Answers to the practice questions
- A point in the project at which progress can be checked.
- The longest path through the task network, which decides the shortest project time.
- The time by which a task can be delayed without delaying the project.
Sources
- Official BCA syllabus Software Engineering, course code 26BCA403DS03, Unit II
