Task 4a · Interpreting the Brief
up to +100 XP
Stop 4a.1 · Task 4a · 5 min

Interpreting the Brief

Understand Task 4a requirements and plan your solution

Learning Objectives:
  • Understand what Task 4a requires
  • Learn to analyze system and user requirements
  • Identify what needs to be added to existing code
  • Plan your coding approach effectively
  • Understand secure coding requirements

What is Task 4a?

Task 4a is the coding task where you extend existing Python code to add new functionality. You'll receive:

Understanding the Scenario

Context: T-Learn Automotives (or similar company) has a working sales analysis system. They want additional features added.

What You're Given

What the Existing Code Does

The provided code typically includes:

Your job: Add NEW features while keeping existing code working.

Reading the Requirements

System Requirements

These tell you WHAT functionality to add:

User Requirements

These tell you HOW to present the solution:

Breaking Down the Requirements

Example Requirement Analysis

Requirement: "Identify trends and patterns over time for new and used car sales"

What this means:

What you need to code:

Example Requirement Analysis 2

Requirement: "Identify trends and patterns for different salespeople"

What this means:

What you need to code:

Planning Your Approach

Step 1: Read the Existing Code

Step 2: List What Needs Adding

Create a checklist:

Step 3: Plan Your Functions

For each new feature, plan:

Security Requirements

"The solution must be secure" means you need to:

Input Validation

Error Handling

Data Validation

Code Quality Requirements

Maintainable Code

Readable Code

Functional Code

Common Requirements Patterns

Pattern 1: Comparison Analysis

Compare two categories (New vs Used, Salesperson A vs B)

Pattern 2: Trend Over Time

Show how something changes over time

Pattern 3: Top Performers

Identify best/worst in a category

Exam Strategy

Initial Steps

Main Coding Phase

Final Steps

Tips for Success

Understanding Requirements

Working with Existing Code

Adding New Features

Quick check · 10 questions

Check what stuck.

+10 XP each
Question 1

Question 1 of 10

What typical columns are in Task 4a CSV data?

Question 2

Question 2 of 10

How much time do you have for Task 4a?

Question 3

Question 3 of 10

What should you do with existing code in Task 4a?

Question 4

Question 4 of 10

What 3 types of output are required?

Question 5

Question 5 of 10

What does "solution must be secure" mean?

Question 6

Question 6 of 10

What library do you use for data manipulation?

Question 7

Question 7 of 10

What library do you use for visualizations?

Question 8

Question 8 of 10

How should new menu options be added?

Question 9

Question 9 of 10

What should you do BEFORE coding?

Question 10

Question 10 of 10

What does "easy to use" mean?