Software Engineering ยท Unit 10 ยท 7 hrs
Software Management
Exam-focused notes for Software Management (Software Engineering, CSC375): what the TU syllabus asks and how it has actually been tested, with 11 solved past questions from this unit.
Software Management in short
Software project management plans, schedules, staffs and controls the work of building software, estimates its cost and duration before it starts, and puts in place the quality and configuration discipline needed to keep a changing system trustworthy.
What this unit covers
- Software Project Management
- Project Management Activities (Project Planning, Risk Management, People Management, Reporting and Proposal Writing)
- Project Planning (Software Pricing, Plan-Driven Development, Project Scheduling, Estimation Techniques, COCOMO Cost Modeling)
- Introduction to Quality Management and Configuration Management
Project Planning
2081 ยท 10 marks
Explain the importance of software pricing. Highlight COCOMO cost modeling technique. List its disadvantage.[10]
Show solved answerHide answer
Software Pricing, COCOMO Cost Modeling, and Its Disadvantages
1. Importance of Software Pricing
Software pricing is a critical activity in software project management. It must take into account broader organizational, economic, political, and business considerations. Simply calculating the cost of development is not enough; pricing decisions are influenced by many strategic factors.
The major factors that affect software pricing are:
| Factor | Explanation |
|---|---|
| Market Entry Strategy | A development organization may quote a low price if it wants to move into a new segment of the software market. Accepting low profit in one project may give the opportunity of more profit later. |
| Uncertain Cost Estimation | If an organization has no clear idea about cost estimation, it may increase its price by adding a contingency amount to cover unexpected expenses. |
| Unclear Requirements | If the customer is not clear about their requirements, there is a chance of changing requirements later. In such cases, the organization may initially lower its price to win the contract. |
| Financial Health | If the financial health of the organization is not good, they may lower their price to gain a contract and establish themselves in business. |
| Competitive Positioning | Pricing helps an organization position itself competitively in the market against rival software vendors. |
Why Software Pricing Matters:
- It determines the profitability and sustainability of a software organization.
- It affects the bidding and tendering process for software contracts.
- It helps in resource planning -- knowing how much to invest in development, testing, and maintenance.
- Roughly 60% of costs are development costs and 40% are testing costs, so accurate pricing ensures these are covered.
- For customer software, evolution costs often exceed development costs, making long-term pricing strategy essential.
2. COCOMO Cost Modeling Technique
Definition
The Constructive Cost Model (COCOMO) is an algorithmic software cost estimation model. It predicts or estimates:
- The effort required for the project (in person-months)
- The total project cost
- The scheduled time for the project
This model depends on the number of lines of code (LOC) for software product development.
Estimation Approaches
COCOMO fits within the broader software estimation process, which includes estimating:
- Size of the software product
- Effort required
- Overall cost of the project
Estimation can be done using either:
- Top-down approach (also called Macro Model): Overall cost is derived from global properties of the project.
- Bottom-up approach: The cost of each software component is estimated individually and then combined to arrive at the overall project cost. COCOMO's detailed model is the leading method using this bottom-up approach.
Types / Levels of COCOMO
COCOMO is applied at three levels depending on the accuracy needed:
a) Basic COCOMO
- Estimates effort and duration based purely on lines of code (LOC).
- Uses the formula:
Effort (E) = a * (KLOC)^b [person-months]
Duration (D) = c * (E)^d [months]
Where a, b, c, d are constants that depend on the project type.
b) Intermediate COCOMO
- Extends Basic COCOMO by introducing cost driver attributes such as:
- Product attributes (reliability, complexity)
- Hardware attributes (memory constraints)
- Personnel attributes (analyst capability)
- Project attributes (use of software tools)
- These attributes adjust the effort estimate more accurately.
c) Detailed COCOMO (Advanced)
- Uses the bottom-up approach.
- The cost of each individual software component is estimated and then combined.
- It aims at constructing the estimate of a system from the knowledge gained about small software components and their interactions.
- Provides the most accurate estimate among the three levels.
Project Categories in COCOMO
| Mode | Description | Example |
|---|---|---|
| Organic | Small, simple projects with experienced teams | Payroll system |
| Semi-detached | Medium complexity, mixed experience | Compiler design |
| Embedded | Complex, tight constraints (hardware/software) | Air traffic control |
3. Disadvantages of COCOMO
Despite being widely used, COCOMO has several notable disadvantages:
-
Dependence on Lines of Code (LOC)
- The model relies heavily on LOC as the primary input. LOC is difficult to estimate accurately at the early stages of a project, making early estimates unreliable.
-
Does Not Handle Modern Development Well
- COCOMO was designed for traditional software development. It does not adequately address object-oriented development, component-based development, or agile methodologies.
-
Difficulty in Accurate Cost Driver Assessment
- In Intermediate and Detailed COCOMO, the cost drivers (effort multipliers) are subjective and require expert judgment, which can introduce human bias into the estimation.
-
Not Suitable for All Project Types
- COCOMO is less effective for real-time systems, embedded systems, or projects with rapidly changing requirements, as these do not fit neatly into its three project categories.
-
Ignores Reuse and COTS Components
- The model does not properly account for reused code, commercial off-the-shelf (COTS) components, or third-party libraries, which are common in modern software development.
-
Historical Data Dependency
- The constants (
a,b,c,d) used in the formulas are derived from historical project data. If an organization's projects differ significantly from the data used to calibrate the model, the estimates will be inaccurate.
- The constants (
-
Does Not Consider Team Dynamics
- COCOMO does not fully account for team communication overhead, organizational culture, or management quality, all of which significantly affect project cost and schedule.
Summary Table
| Aspect | Detail |
|---|---|
| Software Pricing | Strategic decision based on market, finance, and requirements clarity |
| COCOMO Type | Algorithmic cost estimation model |
| Input | Lines of Code (KLOC) |
2079 ยท 5 marks
Suppose that a project was estimated to be 400 KLOC. Calculate the effort and development time for organic and semidetached. [5]
Show solved answerHide answer
COCOMO Basic Model - Effort and Development Time
Given
- Project Size = 400 KLOC
- Modes required: Organic and Semidetached
- Basic COCOMO constants (standard):
| Mode | a | b | c | d |
|---|---|---|---|---|
| Organic | 2.4 | 1.05 | 2.5 | 0.38 |
| Semidetached | 3.0 | 1.12 | 2.5 | 0.35 |
Formulas: $$E = a \times (KLOC)^b \text{ (Person-Months)}, \qquad D = c \times (E)^d \text{ (Months)}$$
Solution
Note: $\ln(400) = 5.99146$
1. Organic Mode
Effort: $$E = 2.4 \times 400^{1.05}$$ $$400^{1.05} = e^{1.05 \times 5.99146} = e^{6.29103} = 539.6$$ $$E = 2.4 \times 539.6 = 1295.0 \text{ PM}$$
Development Time: $$D = 2.5 \times (1295.0)^{0.38}$$ $$\ln(1295.0) = 7.16626$$ $$0.38 \times 7.16626 = 2.72318$$ $$(1295.0)^{0.38} = e^{2.72318} = 15.23$$ $$D = 2.5 \times 15.23 = 38.07 \text{ Months}$$
2. Semidetached Mode
Effort: $$E = 3.0 \times 400^{1.12}$$ $$400^{1.12} = e^{1.12 \times 5.99146} = e^{6.71044} = 819.0$$ $$E = 3.0 \times 819.0 = 2457.0 \text{ PM}$$
Development Time: $$D = 2.5 \times (2457.0)^{0.35}$$ $$\ln(2457.0) = 7.80674$$ $$0.35 \times 7.80674 = 2.73236$$ $$(2457.0)^{0.35} = e^{2.73236} = 15.37$$ $$D = 2.5 \times 15.37 = 38.43 \text{ Months}$$
Summary Table
| Mode | Effort (PM) | Development Time (Months) |
|---|---|---|
| Organic | โ 1295 PM | โ 38.07 Months |
| Semidetached | โ 2457 PM | โ 38.43 Months |
2077 ยท 5 marks
Explain with example how COCOMO can be used for software cost estimation? [5]
Project Management Activities
2081 ยท 5 marks
How risk management is carried out during software development? Explain. [5]
2076 ยท 10 marks
Discuss different types of risks which are likely to arise in software projects. Briefly explain risk analysis stage during risk management process.[10]
Introduction to Quality Management and Configuration Management
2080 ยท 10 marks
In the software development process, how does software configuration management facilitate the changes that may occur during different stages of a software development life cycle? Justify your explanation with example.[10]
2079 ยท 10 marks
Explain in detail about the activities carried out in software configuration management. Why it is required?[10]
2079 ยท 5 marks
What do you understand by software quality assurance? [5]
2077 ยท 10 marks
Explain the detail tasks in a software configuration management process with example.[10]
Show solved answerHide answer
Software Configuration Management (SCM) Process - Detailed Tasks
Definition
Software Configuration Management (SCM) is the general process of managing a changing software system. During the development process, we have to keep track of the many different versions of each software component and ensure that changes made by different developers do not interfere with each other. SCM is concerned with the policies, processes, and tools for managing changing software systems.
Why SCM is Needed
Software systems are constantly changing during development and after delivery. Multiple developers may work on the same system simultaneously, different versions exist for different customers, and bugs must be fixed while new features are added. Without SCM, chaos results - wrong versions get delivered, changes are lost, and conflicts arise between developers.
Example Context: Consider a team of 5 developers building an Online Banking System. Developer A is fixing a security bug in Login.java, while Developer B is adding a new feature to the same file. Without SCM, one developer's work will overwrite the other's.
Detailed Tasks in SCM Process
Task 1: Change Management
Definition: Change management is the process of keeping track of requests for changes to the delivered software from customers and developers, working out the costs and impact of making these changes, and deciding whether and when the changes should be implemented.
Steps involved:
- A change request is submitted formally
- The change is analyzed for cost, impact, and feasibility
- A Change Control Board (CCB) approves or rejects the change
- Approved changes are assigned to developers
- Changes are tracked until completion
Example: In the Online Banking System, a customer requests: "Add UPI payment support."
- A Change Request Form (CRF) is filled out
- The team estimates it will take 3 weeks and affect
Payment.java,Transaction.java - CCB approves the change
- Developer C is assigned the task
- The change is tracked from request to deployment
Task 2: Version Management
Definition: Version management is the process of keeping track of different versions of software components and the systems in which these components are used. It also involves ensuring that changes made by different developers to these versions do not interfere with each other.
Key concepts:
- Version: A specific instance of a software item (e.g., v1.0, v1.1, v2.0)
- Variant: A version created for different environments (e.g., Windows variant, Linux variant)
- Baseline: A snapshot of a system at a particular point in time
Example:
Online Banking System Versions:
- v1.0 --> Initial release (basic login, balance check)
- v1.1 --> Bug fix release (fixed login timeout issue)
- v2.0 --> Major release (added UPI payment support)
- v2.0-Windows --> Windows variant
- v2.0-Android --> Android variant
Tools like Git, SVN, or CVS are used for version management. For example:
git commit -m "Fixed login timeout bug - v1.1"
git tag v1.1
git branch feature/upi-payment # new branch for v2.0 development
Task 3: System Building
Definition: System building is the process of assembling program components, data, and libraries, then compiling and linking these to create an executable system. Different versions of components may be included in different builds.
Steps involved:
- Identify which versions of components to include
- Retrieve those versions from the version management system
- Compile and link all components
- Run automated tests on the built system
- Create a build report
Example:
For the Online Banking System, a build specification might be:
Build: v2.0 Release Build
Components:
- Login.java (version 1.3 - security patched)
- Payment.java (version 2.1 - UPI added)
- Transaction.java (version 1.8)
- Database.java (version 1.5)
Build Tool: Maven / Gradle
Command: mvn clean install
Output: BankingApp-v2.0.jar
Build tools like Maven, Gradle, Ant, or Make automate this process. Continuous Integration (CI) tools like Jenkins can trigger automatic builds whenever a developer commits code.
Task 4: Release Management
Definition: Release management involves preparing software for external release and keeping track of the system versions that have been released for customer use. It includes creating the release package (executable, documentation, configuration files) and distributing it to customers.
A release includes:
- The executable programs (compiled code)
- Configuration files
- Data files needed for installation
- Installation programs
- Electronic and paper documentation
- Packaging and associated publicity
Types of releases:
| Type | Description | Example |
|---|---|---|
| Major release | Significant new functionality | v1.0 to v2.0 |
| Minor release | Small improvements and bug fixes | v2.0 to v2.1 |
| Patch release | Emergency bug fixes only | v2.1 to v2.1.1 |
Example:
For the Online Banking System v2.0 release:
Release Package Contents:
- BankingApp-v2.0.jar (executable)
- config.properties (configuration file)
- database_schema_v2.sql (data file)
- install.sh / setup.exe (installation script)
- UserManual_v2.0.pdf (user documentation)
- ReleaseNotes_v2.0.txt (what changed)
The release manager records: "v2.0 released to customers on 2024-01-15, deployed on Linux servers, supports UPI payments."
Summary Table
| SCM Task | Purpose | Key Tool/Artifact |
|---|---|---|
| Change Management | Track and control change requests | Change Request Form, CCB |
| Version Management | Track different versions of components | Git, SVN, CVS |
| System Building | Assemble and compile components into an executable system | Maven, Gradle, Ant, Make, Jenkins |
| Release Management | Prepare a release package and track what was shipped to customers | Release package, release notes |
Conclusion
The four tasks form a single controlled loop. A change request is raised and approved by the CCB, the developer checks out the affected components and checks in new versions under version management, the build process assembles a specific set of those versions into an executable system, and release management packages that build with its documentation and records what was delivered. Because every artefact is versioned and every change is traced back to an approved request, the team can always reproduce any past build of the Online Banking System exactly.
2077 ยท 5 marks
Explain the software quality assurance with example. [5]
Make Unit 10 stick
Practice CSC375 with flashcards & quizzes