0
0
Software Engineeringknowledge~30 mins

Quality metrics and measurement in Software Engineering - Mini Project: Build & Apply

Choose your learning style9 modes available
Quality Metrics and Measurement
📖 Scenario: You are part of a software development team that wants to track the quality of your software project. To do this, you will create a simple data structure to hold quality metrics, set a threshold for acceptable quality, analyze the metrics, and finalize the quality report.
🎯 Goal: Build a step-by-step quality metrics tracker that stores metric values, sets a quality threshold, identifies metrics below the threshold, and completes the quality report.
📋 What You'll Learn
Create a dictionary named quality_metrics with exact metric names and values
Create a variable named quality_threshold with a specific numeric value
Use a for loop with variables metric and value to find metrics below the threshold
Add a final summary dictionary named quality_report that includes the low quality metrics
💡 Why This Matters
🌍 Real World
Tracking software quality metrics helps teams identify weak areas and improve product reliability.
💼 Career
Quality measurement is essential for software testers, developers, and project managers to ensure high standards.
Progress0 / 4 steps
1
Create the quality metrics dictionary
Create a dictionary called quality_metrics with these exact entries: 'Code Coverage': 85, 'Bug Density': 3, 'Test Pass Rate': 92, 'Code Complexity': 7
Software Engineering
Need a hint?

Use curly braces {} to create a dictionary with the exact keys and values.

2
Set the quality threshold
Create a variable called quality_threshold and set it to the value 80 to represent the minimum acceptable metric value.
Software Engineering
Need a hint?

Just assign the number 80 to the variable quality_threshold.

3
Identify metrics below the threshold
Use a for loop with variables metric and value to iterate over quality_metrics.items(). Inside the loop, create a list called low_quality_metrics before the loop and add each metric to this list if its value is less than quality_threshold.
Software Engineering
Need a hint?

Start with an empty list, then check each metric's value and add the metric name if it is below the threshold.

4
Create the final quality report
Create a dictionary called quality_report with a key 'Low Quality Metrics' and set its value to the list low_quality_metrics.
Software Engineering
Need a hint?

Use curly braces to create a dictionary with the specified key and assign the list as its value.