📊 Week 21, Day 2: Project Requirements & System Analysis

🎯 Learning Objectives

📋 Step 1: Problem Definition

Writing a Strong Problem Statement

A problem statement clearly explains what problem your application will solve and why it matters.

Template:

[Target users] face [problem] because [reason].
This leads to [negative consequence].
Our solution will [how your app solves it].

Example Problem Statements

Example 1: Library Management System

Problem Statement:
"Students and library staff face difficulties tracking book borrowing and returns because the current manual system is inefficient and error-prone. This leads to lost books, overdue fines disputes, and wasted staff time. Our Library Management System will automate book tracking, send email notifications for due dates, and provide a searchable catalog with availability status."

Example 2: Hospital Appointment System

Problem Statement:
"Patients struggle to book appointments with doctors because phone lines are often busy and reception hours are limited. This leads to missed appointments, long wait times, and poor patient satisfaction. Our Hospital Appointment System will allow patients to book, reschedule, and cancel appointments online 24/7, with automatic email confirmations and reminders."

Example 3: Online Marketplace

Problem Statement:
"Small local vendors lack a platform to sell their products online because creating individual e-commerce websites is expensive and complex. This limits their customer reach and sales potential. Our Online Marketplace will provide vendors with an easy-to-use platform to list products, manage orders, and reach customers across the region."

👥 Step 2: User Personas & User Stories

Creating User Personas

User personas represent your typical users and help guide design decisions.

Persona Template:

Example: Library Management System Personas

Persona 1: Student User

Persona 2: Librarian

Writing User Stories

User stories describe features from the user's perspective.

Template:

As a [user type],
I want to [action],
So that [benefit].

Example User Stories (Library System)

  1. As a student, I want to search for books by title or author, so that I can quickly find the books I need.
  2. As a student, I want to see book availability status, so that I don't waste time looking for borrowed books.
  3. As a student, I want to receive email reminders, so that I return books on time and avoid fines.
  4. As a librarian, I want to scan book barcodes, so that I can quickly process borrowing and returns.
  5. As a librarian, I want to view overdue books report, so that I can follow up with students.
  6. As an admin, I want to add new books to the system, so that the catalog stays up to date.

⚙️ Step 3: System Requirements

Functional Requirements (What the system DOES)

List all features and actions users can perform.

Example (Library System):

ID Requirement Priority
FR-01 System shall allow users to register and login High
FR-02 System shall display searchable book catalog High
FR-03 System shall allow librarians to issue books High
FR-04 System shall track borrowing history Medium
FR-05 System shall send email notifications for due dates Medium
FR-06 System shall calculate and track fines Low
FR-07 System shall generate borrowing reports Low

Non-Functional Requirements (HOW the system performs)

Define performance, security, and usability standards.

Category Requirement
Security User passwords must be hashed using bcrypt
Security Only authenticated users can access the system
Performance Search results should load within 2 seconds
Usability Interface must be responsive (mobile and desktop)
Compatibility Must work on Chrome, Firefox, Safari, Edge
Reliability System uptime should be 99% or higher

🗄️ Step 4: Database Design (ER Diagram)

Example Database Schema (Library System)

Tables Needed:

  1. users - Store user accounts (students, librarians, admins)
  2. books - Store book information
  3. categories - Book categories (Fiction, Science, etc.)
  4. borrowings - Track who borrowed which book and when
  5. fines - Track overdue fines

Relationships:

Sample Table Structure:

users
-----
id (PK)
name
email (unique)
password
role (student/librarian/admin)
created_at

books
-----
id (PK)
title
author
isbn (unique)
category_id (FK)
quantity
available_quantity
cover_image
created_at

categories
----------
id (PK)
name
description

borrowings
----------
id (PK)
user_id (FK)
book_id (FK)
borrowed_date
due_date
return_date (nullable)
status (borrowed/returned/overdue)

fines
-----
id (PK)
borrowing_id (FK)
amount
paid_at (nullable)
status (pending/paid)

🎯 Step 5: Project Scope

Defining Scope (What's IN and OUT)

In Scope (What you WILL build):

Out of Scope (What you WON'T build - to save time):

⚠️ Warning: Avoid scope creep! It's better to build a smaller system WELL than a large system POORLY.

✏️ Today's Tasks

Task 1: Write Your Problem Statement (20 minutes)

Use the template provided to write a clear, concise problem statement for your project.

Task 2: Create User Personas (30 minutes)

Identify 2-3 types of users and create detailed personas for each.

Task 3: Write User Stories (30 minutes)

Write at least 10 user stories covering major features of your system.

Task 4: List Requirements (40 minutes)

  1. List 10-15 functional requirements
  2. List 5-7 non-functional requirements
  3. Prioritize each (High/Medium/Low)

Task 5: Design Database Schema (45 minutes)

  1. Identify all tables needed
  2. Define columns for each table
  3. Identify relationships (One-to-Many, Many-to-Many)
  4. Draw an ER diagram (use paper or draw.io)

Task 6: Define Scope (15 minutes)

Clearly list what's IN scope and what's OUT of scope.

📦 Deliverables

Submit before next class:

  1. Problem Statement Document: Clear problem definition with target users and solution
  2. User Personas: At least 2 detailed personas
  3. User Stories: Minimum 10 user stories
  4. Requirements Document:
    • 10-15 functional requirements
    • 5-7 non-functional requirements
  5. ER Diagram: Database schema showing all tables and relationships
  6. Scope Document: Clear in-scope and out-of-scope lists
💡 Pro Tips: