Metrics Assignment
Metrics Assignment
Name Id_No
Dame Samuel Abdisa Nsr/2225/20
i
1. Explain different types of metrics.
Metrics are quantifiable measures used to track and assess the status, quality, or performance of
processes, projects, or systems. They can vary depending on the domain (e.g., business, software
development, or healthcare), but broadly, metrics can be classified into the following categories:
1. Business Metrics
2. Performance Metrics
Definition: These track the performance and quality of software development processes.
Examples:
o Code Quality Metrics:
Cyclomatic Complexity: Measures the complexity of code.
Code Coverage: Percentage of code covered by automated tests.
o Team Productivity Metrics:
Velocity: Amount of work completed per sprint.
Burndown Chart: Work remaining in a sprint.
o Operational Metrics:
Mean Time to Failure (MTTF): Average time before software fails.
Mean Time to Recovery (MTTR): Time taken to recover from a failure.
4. Financial Metrics
1
Definition: These measure the financial performance of an organization.
Examples:
o Profit Margin: Net income as a percentage of revenue.
o Return on Investment (ROI): Gain/loss generated relative to the investment
cost.
o Operating Expenses (OPEX): Costs associated with business operations.
5. Marketing Metrics
7. Educational Metrics
8. Environmental Metrics
2
Definition: These track the progress and success of projects.
Examples:
o On-Time Delivery Rate: Percentage of tasks completed on schedule.
o Budget Variance: Difference between actual and planned budget.
o Scope Creep: Measure of unplanned changes in project scope.
3
3. What is LOC, its features and Find LOC for the following simple
code
void main()
sum = fN + sN;
// Prints sum
cout << fN << " + " << sN << " = " << sum;
return 0;
What is LOC?
LOC (Lines of Code) is a software metric used to measure the size of a program by counting the
number of lines in the source code. It helps in estimating the complexity and effort required for
development, maintenance, and testing.
Features of LOC
LOC Calculation
4
Comment Lines: Counted
2. {
3. if ( g1 == 1
4. && g2 == 0 )
5. {
6. printf("who cares!\n");
7. }
8. }
What if I wrote it like this?! and which tools you use to run this?
Original Code:
if (g1 == 1 && g2 == 0)
printf("who cares!\n");
5
Modified Code:
printf("who cares!\n");
Corrected version:
if (g1 == 1 && g2 == 0)
printf("who cares!\n");
This is a valid and compact C code. The curly braces ({}) around the if block are optional for
single statements.
You can use any C compiler or IDE. Here are some common tools:
Code::Blocks
Dev- C++
Eclipse CDT
CLion
Visual Studio
6
5. What are some basics of KPIs (key performance indicators) for a
Project Management Office?.
A Project Management Office (PMO) plays a pivotal role in standardizing project management
practices and ensuring projects align with organizational objectives. To evaluate the effectiveness
of a PMO, it's essential to monitor specific Key Performance Indicators (KPIs). Here are some
fundamental KPIs commonly tracked:
Percentage of Projects Aligned to Strategy: This KPI measures the proportion of active
projects that directly support the organization's strategic goals. A higher percentage indicates
better alignment between project outcomes and business objectives.
On-Time Project Completion Rate: This metric assesses the percentage of projects
completed by their scheduled deadlines. It reflects the PMO's efficiency in time management and
scheduling.
Budget Variance: This KPI compares the planned budget to the actual expenditure of
projects. A minimal variance suggests effective financial oversight and resource allocation.
Resource Utilization: This metric evaluates how effectively the PMO deploys its resources,
including personnel and equipment. Optimal utilization ensures that resources are neither
underused nor overextended.
Customer Satisfaction Index: This KPI gauges stakeholder satisfaction with project
outcomes, providing insights into the quality and effectiveness of project deliverables.
Scope Creep Rate: This metric measures the frequency and extent of unauthorized changes to
the project scope, indicating the PMO's ability to manage project boundaries and requirements.
Return on Investment (ROI): This KPI calculates the financial return generated from
projects relative to their costs, reflecting the overall value delivered by the PMO.