Preliminary Software Engineering
Unit 1 - Programming Fundamentals
Unit 1 - Programming Fundamentals
  • 1 - Programming Fundamentals
    • Programming Fundamentals Content
  • 2 - Python
    • Expected Python Knowledge
    • GitHub
    • Learning Python
    • Data Structures and File Management
      • Data Structures
        • Lists
        • Arrays
          • Single and Multi-Dimensional Arrays
        • Lists vs Arrays
          • Activities
        • Tuples
        • Sets
        • Dictionaries
          • Activities
      • File Handling
        • Loops, Lists, Dictionaries
        • Activities
  • 3 - Theory Content
    • Theory Content Explained
      • NESA Directional Verbs
      • Responding to Directional Verbs
  • 4 - Software Development and Management
    • Approaches to Software Development
      • Waterfall Model
      • Agile Model
      • Summary: Waterfall vs Agile
      • Activities
    • Software Development Steps
      • Sample Exam Question
      • Requirements Definition
        • Understanding the Need
        • Key Questions to Ask
        • Examples
        • Activities
        • Sample Exam Question
      • Determining Specifications
        • Functional Specifications
        • Non-Functional Specifications
        • Activities
      • Design
        • Top-Down Design Approach
        • Bottom-Up Design Approach
      • Development
        • Optimising Code
      • Integration
        • Example: Payment Program
        • Activity
        • Application Programming Interface (API)
          • Example: OpenWeather API
          • Example: WeatherAPI
          • Activity: Prepare Spells
      • Testing and Debugging
        • Test Data
          • Activities
        • Testing the System
          • Activities
        • Debugging
          • Types of Errors
            • Activities
          • Python Debugger
            • Activities
          • VS Code Debugger
            • Activities
      • Installation
        • Activities
        • Sample Exam Question
      • Maintenance
  • Charts and Algorithms
    • Example: IPO Charts and Pseudocode
      • Activities
    • Algorithms, Flowcharts, Pseudocode
      • Pseudocode Activities
      • Flowchart Activities
      • Sample Exam Questions
    • Structure Charts
      • Activities
      • Sample Exam Questions
    • Data Flow Diagrams
      • Activities
    • Data Dictionaries
      • Activities
    • Decision Trees
      • Activities
      • Sample Exam Questions
    • Gantt Chart
    • Class Diagrams
      • Sample Exam Question
    • Storyboards
      • Sample Exam Question
  • Testing and Debugging
    • Test Data
      • Activities
    • Testing the System
      • Activities
    • Debugging
      • Types of Errors
        • Activities
      • Python Debugger
        • Activities
      • VS Code Debugger
        • Activities
  • Computational Thinking
    • Decomposition
    • Abstraction
    • Activities
  • Version Control
    • Git
    • GitHub
    • Activities
  • Number Systems
    • Binary Systems
    • Hexadecimal Numbers
    • Using Two's Complement
    • Activities
  • 5 - Assessment Task 1
    • Data Science Project
      • Before we Start
        • Setting up GitHub Repository
        • Setting Up Markdown Documentation
      • Examples of API Usage
        • Starter Code: NASA Scenario
        • Starter Code: Spell Book
        • Starter: Pokédex Explorer
        • Starter Code: Weather App
        • Example: OpenWeather API
        • Example: WeatherAPI
        • Example: Prepare Spells
    • Task Guide
      • Requirements Definition
      • Determining Specifications
        • Use Cases
      • Design
        • Gantt Chart
        • Structure Chart
        • Algorithms
        • Data Dictionary
      • Development
        • Comments vs DocStrings
        • UI - main.py
        • Create Python Module
          • Example: NASA Module
          • Example: WeatherFetch Module
          • Example: SpellBook Module
      • Integration
        • Example: Pokedex
      • Testing and Debugging
        • Commit Changes
      • Installation
      • Maintenance
    • Submitting Your Task
Powered by GitBook
On this page
  • Example - Educational Product
  • Main Function
  • Module 1: User Management
  • Module 2: Content Delivery
  • Module 3: Performance Analysis
  • Integration
  • Execution
  1. Computational Thinking

Decomposition

Decomposition in software design is the process of breaking down a complex system into smaller, more manageable components. This helps in understanding, designing, and maintaining the system by dividing it into modules, functions, or subsystems, each handling a specific part of the overall functionality.

For example, in a Data Flow Diagram (DFD):

  • Level 0 (Context Diagram) represents the entire system as one process.

  • Level 1 DFD decomposes that single process into multiple sub-processes.

Decomposition improves modularity, reusability, and scalability, making large systems easier to develop and maintain.

Example - Educational Product

Main Function

Decompose the project into smaller modules

def educational_product():
    DEVELOP_USER_MANAGEMENT_MODULE()
    DEVELOP_CONTENT_DELIVERY_MODULE()
    DEVELOP_PERFORMANCE_ANALYSIS_MODULE()

After developing each module, integrate them

def INTEGRATE_MODULES()

Module 1: User Management

def DEVELOP_USER_MANAGEMENT_MODULE():
    # Handle user registration
    HANDLE_USER_REGISTRATION()
    
    # Handle user authentication
    HANDLE_USER_AUTHENTICATION()
    
    # Handle profile management
    HANDLE_PROFILE_MANAGEMENT()
def HANDLE_USER_REGISTRATION():
    # (Details of user registration process)
def HANDLE_USER_AUTHENTICATION():
    # (Details of user authentication process)
def HANDLE_PROFILE_MANAGEMENT():
    # (Details of profile management process)

Module 2: Content Delivery

def DEVELOP_CONTENT_DELIVERY_MODULE():
    # Present educational content to the users
    DELIVER_EDUCATIONAL_CONTENT()
    
    # Provide questions related to the content
    PRESENT_QUESTIONS()
def DELIVER_EDUCATIONAL_CONTENT():
    # (Details of content delivery process)
def PRESENT_QUESTIONS():
    # (Details of presenting questions process)

Module 3: Performance Analysis

def DEVELOP_PERFORMANCE_ANALYSIS_MODULE():
    # Track user progress
    TRACK_USER_PROGRESS()
    
    # Analyse performance metrics
    ANALYSE_PERFORMANCE_METRICS()
def TRACK_USER_PROGRESS():
    # (Details of tracking user progress)
def ANALYSE_PERFORMANCE_METRICS():
    # (Details of analyzing performance metrics)

Integration

def INTEGRATE_MODULES():
    # (Details of integrating the modules)

Execution

def main():
    educational_product()
PreviousComputational ThinkingNextAbstraction

Last updated 3 months ago