22.11.2012 Views

Schaum's Outline Series

Schaum's Outline Series

Schaum's Outline Series

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 5 Software Metrics 83<br />

Productivity<br />

5.4 Process Metrics<br />

Productivity is one of the basic process metrics. It is calculated by dividing the<br />

total delivered source lines by the programmer-days attributed to the project. The<br />

units are normally LOC/programmer-day. In many projects in the 1960s the productivity<br />

was 1 LOC/programmer-day. In large projects, the typical productivity<br />

will range from 2 to 20 LOC/programmer-day. In small, individual projects, the<br />

productivity can be much higher.<br />

EXAMPLE 5.15<br />

The project totaled 100 KLOC. Twenty programmers worked on the<br />

project for a year. This year included the whole effort for the<br />

requirements, design, implementation, testing, and delivery phases.<br />

Assume that there are about 240 workdays in a year (20 days a<br />

month for 12 months, no vacations). The productivity is 100,000<br />

LOC / 20 240 days = 20.8 LOC/programmer-day.<br />

5.5 The GQMApproach<br />

Vic Basili and Dieter Rombach developed this approach at the University of<br />

Maryland. GQM stands for goals, questions, and metrics. The idea is to first<br />

identify the goals of the approach. Next, questions are developed related to<br />

these goals. Finally, metrics are developed to measure the attributes related to<br />

the questions.<br />

EXAMPLE 5.16<br />

Use the GQM approach for the problem of customer satisfaction.<br />

Goal—Customer satisfaction<br />

Questions—Are customers dissatisfied when problems are found?<br />

Metric—Number of customer defect reports<br />

Review Questions<br />

1. Explain why the height example satisfies the criteria for valid metrics.<br />

2. A study of grade school children found a high correlation between shoe size and<br />

reading ability. Does this mean that shoe size is a good measure of intelligence?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!