Professional Documents
Culture Documents
Activities:
• Teacher explains the four stages of PDLC: Analysis, Design, Coding, and Testing.
• Briefly defines each stage.
2. Analysis:
• Teacher explains the coding stage, emphasizing writing program code and iterative
testing.
5. Testing:
• Teacher discusses the testing stage, explaining how program code is tested using test
data.
Activities:
Activities:
• Explanation:
• Explanation:
• Analysis involves understanding the problem, breaking it down, and defining what
the software needs to accomplish.
• Design is the planning phase, involving the creation of diagrams and pseudocode to
represent the solution.
• Coding is the implementation of the designed solution in a programming language.
• Testing ensures the code functions correctly by using various test cases.
• Engagement:
Analysis:
3. Teacher explains analysis, emphasizing identification, abstraction, decomposition of the
problem, and identification of requirements.
• Explanation:
Design:
4. Teacher demonstrates decomposition using structure diagrams, flowcharts, and
pseudocode.
• Explanation:
• Explanation:
Coding:
6. Teacher explains the coding stage, emphasizing writing program code and iterative testing.
• Explanation:
Testing:
7. Teacher discusses the testing stage, explaining how program code is tested using test data.
• Explanation:
• Testing ensures the software behaves as expected and catches errors or bugs.
• Test data includes various inputs to verify different scenarios.
• Engagement:
Analysis:
Identification:
Abstraction:
• Essential Details:
• Book details (title, author, ISBN, quantity).
• User information (name, ID, contact details).
• Borrowing and returning procedures.
Decomposition:
• Breakdown:
• Inventory management.
• User information management.
• Borrowing and returning processes.
Requirements:
• System Requirements:
• User-friendly interface.
• Search and update functionality.
• Record borrowing and returning transactions.
Design:
Structure Diagram:
• Components:
• Book Inventory
• User Database
• Transaction Log
Flowchart:
• Process Flow:
1. Search for a book.
2. Update book information.
3. Add a new user.
4. Record book borrowing.
5. Record book return.
Pseudocode:
function searchBook(title):
// Search book in inventory
// Display book details
Coding:
Implementation (partial Python example):
class Book:
def __init__(self, title, author, isbn, quantity):
self.title = title
self.author = author
self.isbn = isbn
self.quantity = quantity
class User:
def __init__(self, name, user_id, contact):
self.name = name
self.user_id = user_id
self.contact = contact
class LibrarySystem:
def __init__(self):
self.books_inventory = {}
self.users_database = {}
self.transactions_log = []
Testing:
Test Data:
• Scenarios:
• Searching for a book.
• Updating book quantity.
• Adding a new user.
• Borrowing a book.
• Returning a book.
Test Cases:
1. Search for a book by title.
• Expected outcome: Display book details.
2. Update the quantity of a book.
• Expected outcome: Inventory reflects the updated quantity.
3. Add a new user.
• Expected outcome: User is added to the database.
4. Borrow a book.
• Expected outcome: Record the borrowing transaction.
5. Return a book.
• Expected outcome: Record the return transaction.