Académique Documents
Professionnel Documents
Culture Documents
Assignment - I
)Design Assignment : Problem #10(
: Submitted by
Indranil Nandy
MTech, 2007
Roll no. : 06CS6010
)Supermarket Automation Software )SAS
2
SRS Document for Supermarket Automation
Software
Functional Requirements:
The set of functionalities that are supported by the system are
documented below –
R1.2 weigh
Input: sold-items are passed over the automatic weighting
scale
Processing: weight of the sold-item is automatically get registered
3
R3: check inventory
Description:
The manager upon invoking this function can issue query to
see the inventory details. In response, it shows the inventory details.
Input: query from the manager
Output: display the inventory
Non-functional Requirements:
The set of non-functional requirements can be stated as
follows:
A. Bill format:
1. The bill should contain the serial number of the sales
transaction, the name of the name of the item, code number,
quantity, unit price, and item price.
2. The bill should indicate the total amount payable.
4
Structured Analysis
Data Flow Diagram:
The context level diagram of the Supermarket Automation
Software is shown below.
5
The level 1 diagram of SAS is shown below.
6
Data-Dictionary for the above DFD Model:
change price command : command
generate sales-statistics command : command
update inventory command : command
check inventory command : command
register command : command
item-detail : item-type + price
item-spec : item-detail + barcode
barcode checked item : {item-spec}*
weighed items : {barcode checked item +
quantity}*
sold-items : item-detail + register command
sales-info : {weighted items}*
transaction details : sales-info
registered sold-items : {item-spec + quantity}*
supply-info : {item-spec + quantity}*
new supply : supply-info + update inventory
command
inventory-details : supply-info
query : check inventory command +
option
day : date
period : day
option : [day,period]
sales-statistics : {sales-info}*
changed price : item-spec + change price
command
7
Structured Design
The structured design for Supermarket Automation Software is
shown below.
8
9
UML MODEL
Use Case Analysis
Use Case Diagram:
The use case diagram of the Supermarket Automation
Software is shown below.
10
Text Description:
The text description of the use cases are as follows:
U1: register-sales
Using this use case, the sales clerk register the sold-items,
whenever any item is sold.
11
1. Manager : select print sales-statistics option
2. System : prints out the sales-statistics and shows a
completion message
12
Domain Models
Initial Domain Model
The initial domain model of the problem is shown below:
13
Sequence Diagram
The sequence diagram of the use cases in the given problem are
shown below:
14
2. Sequence Diagram for check inventory use case:
15
3. Sequence Diagram for update price:
16
4. Sequence Diagram for print sales-statistics use case:
17
5. Sequence Diagram for update inventory use case:
18
Class Diagrams
19
20