Professional Documents
Culture Documents
Software Engineering
Software Engineering
SOFTWARE DESIGN
the system.
Understandability
Easily understandable
Efficiency
is spent in maintenance.
If the software is not easy to understand:
isolation:
Since different modules are independent
--high cohesion
--low coupling.
function.
Coupling between two modules:
a measure of the degree of interdependence
or interaction between the two modules .
by a module:
we can roughly tell whether it displays high
cohesion or low cohesion
FILE PROCESSING
OPEN EMPLOYEE UPDATE FILE
READ EMPLOYEE REC
PRINT_PAGE_HEADING
OPEN MASTER FILE(EMPLOYEE)
SET PAGE_COUNT TO 1
SET ERR_FLAG TO FALSE
END
etc.
INITIALIZATION
OPEN TRAN_FILE
ISSUE PROMPT ‘ENTER DATE’
READ TODAYS_DATE
SET TRAN_COUNT TO ZERO
SET REPORT_TOTAL TO ZERO
OPEN REPORT_FILE
END
Example-2
PROCESS PURCHASES
TOTAL_PURCHASE=0
READ NO_OF_PURCHASES
DO LOOP_INDEX=1 TO NO_OF_PURCHASES
GET PURCHASES
ADD PURCHASES TO TOTAL_PURCHASES
ENDDO
SALES_TAX=TOTAL_PURCHASES*SALE_TAX_PERCENT
AMT_DUE=TOTAL_PURCHASES+ SALES_TAX
END
CALCULATE_SALES_TAX
IF PRODUCT IS SALES_TAX EXEMPT THEN
SALES_TAX=0
ELSE
IF PRODUCT_PRICE<$50 THEN
SALES_TAX=PRODUCT_PRICE*0.25
ENDIF
ENDIF
or a structure in C.
share code,
e. g, branching from one module into another
module.
When customer not found, component calls the
AddCustomer( ) method that is responsible for
maintaining customer data.
environment
Method of access
Degree of associativeness
Represented by a rectangle
External entities are real physical entities:
– input data to the system or
– consume data produced by the system.
– Sometimes external entities are called
terminator, source, or sink.
bubble.
– Represent data input to every high level
function.
– Represent data output from every
high-level function.
– Between 3 to 7 bubbles.
or b occurs.
considered as comment.
places order:
– The accounts department first checks the
deal with:
– Are not processed any further
– An appropriate message for the customer for
these items is generated.
"pendingorder“ file
– Determine the orders that are pending
– Total quantity required for each of the items.