Professional Documents
Culture Documents
SP22 BSE 025 All Lab Tasks
SP22 BSE 025 All Lab Tasks
Lab 1
1
Lab Tasks
Lab 2
Task 1
1. Customer
2. Store Manager
3. Warehouse Person
4. Sales Assistant
5. Marketing
Task 2
1. Place an Order
2. Process Order
3. Create Backorder
4. Process Payment
5. Check Progress
6. Make Refunds
7. Progress Orders
8. Monitor Stock Levels and Run-Rates
9. Print Summary Report of Sales
10. Maintain Product Catalog
11. Generate Sales report
12. Check Stock and Pricing
13. Access Sales Information
2
Lab Tasks
Fig 2.1 Detailed Use Case Diagram for Store Management System
3
Lab Tasks
Lab 3
Use Case 1
Normal Flow: 1. The customer enters the store or use the store's point of
sale system.
2. The customer selects products from the store’s catalog and
adds them to the order list.
3. The customer specifies the desired quantity for each
product.
4. The customer provides all the required information, such
as their name, contact details, and delivery address)
5. The customer selects the payment method, which can be
cash or credit card.
4
Lab Tasks
Alternative Flows If the customer cancels the order at any point before
confirming the payment, the order is not processed, and no
payment is made.
Exceptions: If the customer does not have access to the system due to
technical issues, the order placement process cannot proceed. It
throws an error
Use Case 2
5
Lab Tasks
Use Case 3
6
Lab Tasks
7
Lab Tasks
Lab 4
1. Client
2. Account
3. Transaction
4. Account Statement
5. Teller
6. ATM
7. Account Type
Client:
• Client ID
• Name
• Address
• Contact Information
• Account List
Account:
• Account Number
• Balance
• Credit Limit
• Owner (Client)
• Transaction List
8
Lab Tasks
Transaction:
• Transaction ID
• Amount
• Account (sender/receiver)
• Description
Account Statement:
• Statement ID
Teller:
• Teller ID
• Name
• Access Permissions
ATM:
• ATM ID
• Location
• Access Permissions
• Transaction History
Account Type:
• ID
9
Lab Tasks
• Description
Q. Class diagram
10
Lab Tasks
Lab 5:
Class Diagram
11
Lab Tasks
Lab 6
Q. Sequence Diagram of Cash Withdrawal of ATM
12
Lab Tasks
Lab 7
[Validation Unsuccessful]
[Validation Successful]
[Validation Unsuccessful]
[Validation Successful]
Balance Available
13
Lab Tasks
Lab 9
14
Lab Tasks
Lab 10
Create the Component Diagram for Given Scenario.
15
Lab Tasks
16
Lab Tasks
17
Lab Tasks
Lab 12
Deployment Diagram
18
Lab Tasks
Lab 13
Create a Model-View Controller Design for the given scenario.
A. Model: Database Design
Student Table:
• Name: string
• Registration Number: string
• Contact Number: string
• Previous Semester GPA: float
• Previous Semester Courses: list
• Scholarship Information: string
• Degree Program: string
• Selected Courses: list of Course objects
Course Table:
• Title: string
• Instructor: string
• Venue: string
• Date and Time: DateTime
• Prerequisites: list
B. View: Interface Design
RegistrationFormView class:
show_form(): displays the registration form
CourseCatalogView class:
show_course_catalog(courses: List[Course]): displays the course catalog
Controller class:
• student: Student object
• view: View object
RegistrationController class:
• fill_registration_form(): fills the registration form
• submit_registration(): submits the registration form
19
Lab Tasks
CourseCatalogController class:
• display_course_catalog(courses: List[Course]): displays the course catalog
Detail:
20
Lab Tasks
21
Lab Tasks
Lab 14
22