📊 Week 21, Day 2: Project Requirements & System Analysis
🎯 Learning Objectives
- Define clear problem statements for your project
- Identify and document system requirements (functional and non-functional)
- Create user personas and user stories
- Design use case diagrams
- Define project scope and constraints
- Create initial database schema (ER diagram)
📋 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:
- Name & Role: e.g., "Sarah - Student"
- Age & Background: e.g., "22, University student"
- Goals: What they want to achieve
- Pain Points: Current frustrations
- Tech Savviness: Comfort level with technology
Example: Library Management System Personas
Persona 1: Student User
- Name: Ahmed, 20 years old
- Role: Computer Science Student
- Goals: Find and borrow books quickly, track due dates
- Pain Points: Forgets due dates, can't check book availability from home
- Tech Level: High - uses smartphone daily
Persona 2: Librarian
- Name: Mrs. Fatima, 45 years old
- Role: Head Librarian
- Goals: Manage book inventory, track overdue books, generate reports
- Pain Points: Manual tracking is time-consuming, difficult to find overdue borrowers
- Tech Level: Medium - uses computers but prefers simple interfaces
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)
- As a student, I want to search for books by title or author, so that I can quickly find the books I need.
- As a student, I want to see book availability status, so that I don't waste time looking for borrowed books.
- As a student, I want to receive email reminders, so that I return books on time and avoid fines.
- As a librarian, I want to scan book barcodes, so that I can quickly process borrowing and returns.
- As a librarian, I want to view overdue books report, so that I can follow up with students.
- 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:
- users - Store user accounts (students, librarians, admins)
- books - Store book information
- categories - Book categories (Fiction, Science, etc.)
- borrowings - Track who borrowed which book and when
- fines - Track overdue fines
Relationships:
- users → borrowings (One-to-Many): One user can borrow many books
- books → borrowings (One-to-Many): One book can have many borrowing records
- categories → books (One-to-Many): One category has many books
- borrowings → fines (One-to-One): One borrowing can have one fine
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):
- ✅ User authentication (registration, login, logout)
- ✅ Book catalog with search and filters
- ✅ Borrowing and return management
- ✅ Email notifications for due dates
- ✅ Admin dashboard for book management
- ✅ Borrowing history and reports
Out of Scope (What you WON'T build - to save time):
- ❌ Mobile app (web only)
- ❌ Online payment for fines (manual payment only)
- ❌ Real-time chat support
- ❌ Integration with external library systems
- ❌ Advanced analytics and AI recommendations
⚠️ 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)
- List 10-15 functional requirements
- List 5-7 non-functional requirements
- Prioritize each (High/Medium/Low)
Task 5: Design Database Schema (45 minutes)
- Identify all tables needed
- Define columns for each table
- Identify relationships (One-to-Many, Many-to-Many)
- 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:
- Problem Statement Document: Clear problem definition with target users and solution
- User Personas: At least 2 detailed personas
- User Stories: Minimum 10 user stories
- Requirements Document:
- 10-15 functional requirements
- 5-7 non-functional requirements
- ER Diagram: Database schema showing all tables and relationships
- Scope Document: Clear in-scope and out-of-scope lists
💡 Pro Tips:
- Use draw.io (free) to create professional ER diagrams
- Keep user stories short and focused on ONE feature
- Review similar projects online for inspiration
- Get feedback from instructor before finalizing