CS577B HOMEWORK ASSIGNMENT #1

Due February 18

Use COCOMO 2.0 as defined in the model definition manual in the course notes for the cost estimation problems. Unless stated otherwise, the problems can be done with USC COCOMO available in the CS577 class account, another COCOMO tool or by hand. Show all your work including model inputs and outputs.

1. Calculate the effort and schedule for the following software project and account for adapted code:

total size=175,000 lines of code, modified code=50,000 lines of code, RELY=high, ACAP=low, all other cost drivers=nominal.
For the modified code, DM=30, CM=35, IM=40, AA=4, SU=20.

2. Assume the estimated effort of a new project is 30 person-months. The project manager is considering the purchase of an integrated development environment which would increase the TOOL rating from nominal to very high. What is the new estimated effort?

3. The estimated schedule for a project is 4 years.

a) What will be the estimated increase in effort if the customer mandates a schedule of 3 years and 5 months?

b) If the estimated average personnel level was 20 people for 4 years, what will be the estimated personnel level with the constrained schedule? What percent increase is this?

4. Calculate the effort and schedule for the following software project and account for adapted code.

SIZE: new size=300,000 lines of code, modified code size=70,000 lines of code
COST DRIVERS: SCED = very low, the effect of a software failure is a large equipment loss, average language and tool experience = 3.1 years, there is expected to be a major change in the operating system once per year, use of a comprehensive toolset fully integrated across all activities, all other cost drivers=nominal (you can round off in the tables; no interpolation is necessary).
SCALE DRIVERS: all rated at nominal.

a) DM=40, CM=45, IM=60, AA=2, SU=25 for the modified code.

b) same as above, except CPLX=extra high

5. For a project tradeoff analysis of staffing policies, what percent increase or decrease in total effort would there be for a project if the average language experience of the software personnel was 6 months versus 3 years?

6. For a project size tradeoff analysis, what would be the relative change in total effort if the application was 300,000 SLOCS versus 250,000 SLOCS with a COCOMO size exponent of 1.15?

7. The data for a completed project is:

component size (KSLOC)
A (new) 210
B (modified) 150

Total project effort was 90000 person-hours.

In component B, 30 out of 100 design modules were modified, 60 KSLOCS out of the total 150 KSLOCS were modified, and 4000 person-hours of integration was required (it required 6000 hours of integration when it was developed new). The modified software is also described as:
structure - high cohesion, low coupling
application clarify - good correlation between program and application
self-descriptiveness - moderate level of comments, headers, documentation.

There was also some module test and evaluation, and documentation required for assessment and assimilation of the modified code.

Using the above data, calculate the following:

(a) calibrate the COCOMO effort equation by solving for the a constant in E=a*(KSLOC)1.2 * EAF, where EAF = 1.3 (assume 152 hours per month) and using the COCOMO 2.0 adaptation adjustment factor AAF = (.4*DM + .3*CM + .3*IM + AA + SU)

(b) productivity in equivalent new lines of code per person-month

8. What is the equivalent lines of code for a product consisting of 100 unadjusted function points implemented in C and 50 unadjusted function points implemented in Ada?

9. Choose between the following testing options using a decision tree analysis. The estimated loss due to a software error is $10M, with an estimated probability of 10% before testing. Show all your work.

Option #1 Option #2 Option #3 (no testing)
Cost $3.2M $2M zero
Loss probability after testing 3% 8% 10%