UNIT 3 Project Planning
UNIT 3 Project Planning
2
People (recruiting, selection, performance management, training,
5
The People: Team Leaders
• Qualities to look for in a team leader
– Motivation. The ability to encourage (by “push or pull”)
technical people to produce to their best ability.
– Organization. The ability to mold existing processes (or invent
new ones) that will enable the initial concept to be translated
into a final product.
– Ideas or innovation. The ability to encourage people to create
and feel creative even when they must work within bounds
established for a particular software product or application.
6
The People: The Software Team
• Seven project factors to consider when structuring a software
development team
– the difficulty of the problem to be solved
– the size of the resultant program(s) in lines of code or function
points
– the time that the team will stay together (team lifetime)
– the degree to which the problem can be modularized
– the required quality and reliability of the system to be built
– the rigidity of the delivery date
– the degree of sociability (communication) required for the
project
7
The Product Scope
• Scope
• Context. How does the software to be built fit into a larger
system, product, or business context and what constraints
are imposed as a result of the context?
• Information objectives. What customer-visible data objects
are produced as output from the software? What data
objects are required for input?
• Function and performance. What function does the
software perform to transform input data into output? Are
any special performance characteristics to be addressed?
• Software project scope must be unambiguous and
understandable at the management and technical levels.
8
Problem Decomposition
• Sometimes called partitioning or problem
elaboration
• Once scope is defined …
– It is decomposed into constituent functions
– It is decomposed into user-visible data objects
or
– It is decomposed into a set of problem classes
• Decomposition process continues until all functions
or problem classes have been defined
9
The Process
• Once a process framework has been established
– Consider project characteristics
– Determine the degree of rigor required
– Define a task set for each software engineering activity
• Task set =
– Software engineering tasks
– Work products
– Quality assurance points
– Milestones
10
The Project
• Projects get into trouble when …
– Software people don’t understand their customer’s needs.
– The product scope is poorly defined.
– Changes are managed poorly.
– The chosen technology changes.
– Business needs change [or are ill-defined].
– Deadlines are unrealistic.
– Users are resistant.
– Sponsorship is lost [or was never properly obtained].
– The project team lacks people with appropriate skills.
– Managers [and practitioners] avoid best practices and lessons learned.
11
To Get to the Essence of a Project
• Why is the system being developed?
• What will be done?
• When will it be accomplished?
• Who is responsible?
• Where are they organizationally located?
• How will the job be done technically and managerially?
• How much of each resource (e.g., people, software, tools,
database) will be needed?
12
Process and Project Metrics
13
A Good Manager Measures
process
process metrics
project metrics
measurement
product metrics
product
What do we
use as a
basis?
• size?
• function?
14
Why Do We Measure?
• assess the status of an ongoing project
• track potential risks
• uncover problem areas before they go “critical,”
• adjust work flow or tasks,
• evaluate the project team’s ability to control quality of
software work products.
15
Process Metrics
• Quality-related
– focus on quality of work products and deliverables
• Productivity-related
– Production of work-products related to effort expended
• Statistical SQA data
– error categorization & analysis
• Defect removal efficiency
– propagation of errors from process activity to activity
• Reuse data
– The number of components produced and their degree of
reusability
16
Typical Project Metrics
• Effort/time per software engineering task
• Errors uncovered per review hour
• Scheduled vs. actual milestone dates
• Changes (number) and their characteristics
• Distribution of effort on software engineering tasks
17
Typical Size-Oriented Metrics
• errors per KLOC (thousand lines of code)
• defects per KLOC
• $ per LOC
• pages of documentation per KLOC
• errors per person-month
• errors per review hour
• LOC per person-month
• $ per page of documentation
18
Typical Function-Oriented Metrics
• errors per FP (thousand lines of code)
• defects per FP
• $ per FP
• pages of documentation per FP
• FP per person-month
19
Function-Oriented Metrics
• FP are computed by
FP = count-total * [0.65 + 0.01 * Sum(Fi)]
• count-total is the sum of all FP entries
• The Fi (i = 1 to 14) are "complexity adjustment values" based
on responses to the following questions [ART85]:
1. Does the system require reliable backup and recovery?
2. Are data communications required?
3. Are there distributed processing functions?
4. Is performance critical?
...
• Each of these questions is answered using a scale that ranges from 0 (not
important or applicable) to 5 (absolutely essential). 20
Comparing LOC and FP
Programming LOC per Function point
Language avg. median low high
Ada 154 - 104 205
Assembler 337 315 91 694
C 162 109 33 704
C++ 66 53 29 178
COBOL 77 77 14 400
Java 63 53 77 -
JavaScript 58 63 42 75
Perl 60 - - -
PL/1 78 67 22 263
Powerbuilder 32 31 11 105
SAS 40 41 33 49
Smalltalk 26 19 10 55
SQL 40 37 7 110
Visual Basic 47 42 16 158
21
Object-Oriented Metrics
• Number of scenario scripts (use-cases)
• Number of support classes (required to implement
the system but are not immediately related to the
problem domain)
• Average number of support classes per key class
(analysis class)
• Number of subsystems (an aggregation of classes
that support a function that is visible to the end-user
of a system)
22
WebApp Project Metrics
• Number of static Web pages (the end-user has no control over the content
displayed on the page)
• Number of dynamic Web pages (end-user actions result in customized
content displayed on the page)
• Number of internal page links (internal page links are pointers that provide
a hyperlink to some other Web page within the WebApp)
• Number of persistent data objects
• Number of external systems interfaced
• Number of static content objects
• Number of dynamic content objects
• Number of executable functions
23
Measuring Quality
• Correctness — the degree to which a program
operates according to specification
• Maintainability—the degree to which a program is
amenable to change
• Integrity—the degree to which a program is
impervious to outside attack
• Usability—the degree to which a program is easy to
use
24
Defect Removal Efficiency
DRE = E /(E + D)
where:
E is the number of errors found before
delivery of the software to the end-user
D is the number of defects found after
delivery.
25
Estimation for Software
Projects
26
Software Project Planning
Why?
27
Project Planning Task Set-I
• Establish project scope
• Determine feasibility
• Analyze risks
• Define required resources
– Determine required human resources
– Define reusable software resources
– Identify environmental resources
28
Project Planning Task Set-II
• Estimate cost and effort
– Decompose the problem
– Develop two or more estimates using size, function points,
process tasks or use-cases
– Reconcile the estimates
• Develop a project schedule
– Establish a meaningful task set
– Define a task network
– Use scheduling tools to develop a timeline chart
– Define schedule tracking mechanisms
29
Estimation
• Estimation of resources, cost, and schedule for
a software engineering effort requires
– experience
– access to good historical information (metrics)
– the courage to commit to quantitative predictions
when qualitative information is all that exists
• Estimation carries inherent risk and this risk
leads to uncertainty
30
Write it Down!
31
What is Scope?
• Software scope describes
– the functions and features that are to be delivered to end-users
– the data that are input and output
– the “content” that is presented to users as a consequence of
using the software
– the performance, constraints, interfaces, and reliability that
bound the system.
• Scope is defined using one of two techniques:
– A narrative description of software scope is developed after
communication with all stakeholders.
– A set of use-cases is developed by end-users.
32
Resource Estimation
• Three major categories of software engineering resources
– People
– Development environment
– Reusable software components
• Often neglected during planning but become a paramount concern during
the construction phase of the software process
• Each resource is specified with
– A description of the resource
– A statement of availability
– The time when the resource will be required
Time window
– The duration of time that the resource will be applied
33
Categories of Resources
People Development Environment
- Number required - Software tools
- Skills required - Computer hardware
- Geographical location - Network resources
The
Project
35
Development Environment
Resources
• A software engineering environment (SEE) incorporates
hardware, software, and network resources that provide
platforms and tools to develop and test software work
products
• Most software organizations have many projects that require
access to the SEE provided by the organization
• Planners must identify the time window required for
hardware and software and verify that these resources will be
available
36
Reusable Software Resources
• Off-the-shelf components
– Components are from a third party or were developed for a
previous project
– Ready to use; fully validated and documented; virtually no risk
• Full-experience components
– Components are similar to the software that needs to be built
– Software team has full experience in the application area of
these components
– Modification of components will incur relatively low risk
37
Reusable Software Resources
• Partial-experience components
– Components are related somehow to the software that needs to
be built but will require substantial modification
– Software team has only limited experience in the application
area of these components
– Modifications that are required have a fair degree of risk
• New components
– Components must be built from scratch by the software team
specifically for the needs of the current project
– Software team has no practical experience in the application
area
– Software development of components has a high degree of risk
38
Estimation Techniques
• Past (similar) project experience
• Conventional estimation techniques
– task breakdown and effort estimates
– size (e.g., FP) estimates
• Empirical models
• Automated tools
39
Functional Decomposition
Statement functional
of decomposition
Scope Perform a Grammatical
“parse”
40
Problem-Based Estimation
• Start with a bounded statement of scope
• Decompose the software into problem functions that can
each be estimated individually
• Compute an LOC or FP value for each function
• Derive cost or effort estimates by applying the LOC or FP
values to your baseline productivity metrics (e.g.,
LOC/person-month or FP/person-month)
• Combine function estimates to produce an overall estimate
for the entire project
41
Problem-Based Estimation
• In general, the LOC/pm and FP/pm metrics should be
computed by project domain
– Important factors are team size, application area, and
complexity
• LOC and FP estimation differ in the level of detail required for
decomposition with each value
– For LOC, decomposition of functions is essential and should go
into considerable detail (the more detail, the more accurate the
estimate)
– For FP, decomposition occurs for the five information domain
characteristics and the 14 adjustment factors
• External inputs, external outputs, external inquiries, internal
logical files, external interface files 42
Problem-Based Estimation
• For both approaches, the planner uses lessons learned to
estimate an optimistic, most likely, and pessimistic size value
for each function or count (for each information domain
value)
• Then the expected size value S is computed as follows:
43
Example: LOC Approach
48
Process-Based Estimation
• Apply average labor rates (i.e., cost/unit effort) to the effort
estimated for each process activity
• Compute the total cost and effort for each function and
each framework activity (See table in Pressman, p. 655)
• Compare the resulting values to those obtained by way of
the LOC and FP estimates
– If both sets of estimates agree, then your numbers are highly
reliable
– Otherwise, conduct further investigation and analysis
concerning the function and activity breakdown
framework activities
50
Process-Based Estimation
Example
Activity Risk Construction
CC Planning Analysis Engineering Release CE Totals
Task analysis design code test
Function
project characteristics
calibration factors
LOC/FP data
52
Estimation with Use-Cases
53
Empirical Estimation Models
General form:
exponent
effort = tuning coefficient * size
usually derived
as person-months empirically
of effort required derived
55
Estimation for OO Projects-II
• Multiply the number of key classes (step 3) by the multiplier
to obtain an estimate for the number of support classes.
• Multiply the total number of classes (key + support) by the
average number of work-units per class. Lorenz and Kidd
suggest 15 to 20 person-days per class.
• Cross check the class-based estimate by multiplying the
average number of work-units per use-case
56
The Make-Buy Decision
57
Computing Expected Cost
expected cost =
(path probability) x (estimated path cost)
i i
59
Why Are Projects Late?
• an unrealistic deadline established by someone outside the software
development group
• changing customer requirements that are not reflected in schedule
changes;
• an honest underestimate of the amount of effort and/or the number of
resources that will be required to do the job;
• predictable and/or unpredictable risks that were not considered when the
project commenced;
• technical difficulties that could not have been foreseen in advance;
• human difficulties that could not have been foreseen in advance;
• miscommunication among project staff that results in delays;
• a failure by project management to recognize that the project is falling
behind schedule and a lack of action to correct the problem
60
Effort and Delivery Time
Effort
Cost
Ea = m ( t d 4 / t a 4 )
Eo
td to development time
Tmin = 0.75T d
61
Scheduling Principles
• “front end” activities
40-50% – customer communication
– analysis
– design
– review and modification
• construction activities
15-20% – coding or code generation
• testing and installation
– unit, integration
– white-box, black box
– Regression
30-40% ,,
62
40-20-40 Distribution of Effort
• A recommended distribution of effort across the software process is
40% (analysis and design), 20% (coding), and 40% (testing)
• Work expended on project planning rarely accounts for more than 2
- 3% of the total effort
• Requirements analysis may comprise 10 - 25%
– Effort spent on prototyping and project complexity may increase this
• Software design normally needs 20 – 25%
• Coding should need only 15 - 20% based on the effort applied to
software design
• Testing and subsequent debugging can account for 30 - 40%
– Safety or security-related software requires more time for testing
63
Basic Principles for Project
Scheduling
• Compartmentalization
– The project must be compartmentalized into a number of
manageable activities, actions, and tasks; both the product and
the process are decomposed
• Interdependency
– The interdependency of each compartmentalized activity,
action, or task must be determined
– Some tasks must occur in sequence while others can occur in
parallel
– Some actions or activities cannot commence until the work
product produced by another is available
64
Basic Principles for Project
Scheduling
• Time allocation
– Each task to be scheduled must be allocated some number of
work units
– In addition, each task must be assigned a start date and a
completion date that are a function of the interdependencies
– Start and stop dates are also established based on whether
work will be conducted on a full-time or part-time basis
• Effort validation
– Every project has a defined number of people on the team
– As time allocation occurs, the project manager must ensure that
no more than the allocated number of people have been
scheduled at any given time
65
Basic Principles for Project
Scheduling
• Defined responsibilities
– Every task that is scheduled should be assigned to a specific
team member
• Defined outcomes
– Every task that is scheduled should have a defined outcome for
software projects such as a work product or part of a work
product
– Work products are often combined in deliverables
• Defined milestones
– Every task or group of tasks should be associated with a project
milestone
– A milestone is accomplished when one or more work products
has been reviewed for quality and has been approved 66
Relationship Between
People and Effort
• Common management myth: If we fall behind schedule, we
can always add more programmers and catch up later in the
project
– This practice actually has a disruptive effect and causes the
schedule to slip even further
– The added people must learn the system
– The people who teach them are the same people who were
earlier doing the work
– During teaching, no work is being accomplished
– Lines of communication (and the inherent delays) increase for
each new person added
67
Factors that Influence a
Project’s Schedule
• Size of the project
• Number of potential users
• Mission criticality
• Application longevity
• Stability of requirements
• Ease of customer/developer communication
• Maturity of applicable technology
• Performance constraints
• Embedded and non-embedded characteristics
• Project staff
• Reengineering factors
68
Purpose of a Task Network
• Also called an activity network
• It is a graphic representation of the task flow for a project
• It depicts task length, sequence, concurrency, and
dependency
• Points out inter-task dependencies to help the manager
ensure continuous progress toward project completion
• The critical path
– A single path leading from start to finish in a task network
– It contains the sequence of tasks that must be completed on
schedule if the project as a whole is to be completed on
schedule
– It also determines the minimum duration of the project
69
Example Task Network
Task F Task G Task H
Task B 2 3 5
3
Task N
Task A 2
Task C Task E Task I Task J
3
7 8 4 5
Task M
0
Task D
5 Task K Task L
3 10
70
Example Task Network
Task F Task G Task H
Task B 2 3 5
3
Task N
Task A 2
Task C Task E Task I Task J
3
7 8 4 5
Task M
0
Task D
5 Task K Task L
3 10
71
Timeline Charts
Tasks Week 1 Week 2 Week 3 Week 4 Week n
Task 1
Task 2
Task 3
Task 4
Task 5
Task 6
Task 7
Task 8
Task 9
Task 10
Task 11
Task 12
72
Use Automated Tools to
Derive a Timeline Chart
73
Example Timeline Charts
74
Proposed Tasks for a Long-Distance Move
of 8,000 lbs of Household Goods
Pack Arrange for
Make household Determine
workers to
decision goods destination
unload truck
to move location
Determine
Make
Drive truck date to move Reserve lodging
from origin out or move in rental truck Get money
reservations
to destination and supplies to pay for
the move
Decide on Find lodging
Unload type/size of with space Lease or buy
Plan travel
truck rental truck to park truck home at
route and
overnight stops destination
7. Arrange for
workers to
load truck
15. Reserve
16. Pick up 17. Load 20. Return
8. Arrange for rental truck
rental truck truck truck and
person to and supplies
drive truck/car supplies
9. Arrange for
workers to
unload truck
10. Pack • Where is the critical path and what tasks are on it?
household • Given a firm start date, on what date will the project be completed? 76
goods • Given a firm stop date, when is the latest date that the project must start by?
Timeline Chart for Long Distance Move
77