Professional Documents
Culture Documents
Objectives
Different design cycles
Dataflow diagrams
Structure charts System analysis and design
1
Top-down vs. evolutionary design
103-6
verify
detailed validation
design user procedures
proposed equipment configuration
program and database specifications
verify
post-
construction installation
system implementation
review
installation maintenance
working system
103-7
validation
2
Linear
Prototyping
systemdesign
designcycle
cycle
project user
definition requirements
feasibility
study
system
Build a
prototype
analysis The prototype clarifies
Test prototype on users system objectives
Gather feedback for critical problems
broad detailed design logical solutions
design
detailed
design
post-
construction installation
review
installation maintenance
103-8
103-9
3
Systems analysis case study:
Lemonade stand
A young girl decides to run an “old-fashioned lemonade” stand on the
footpath outside her suburban home. Using the savings from her
piggy-bank, she goes to the grocery store and buys some lemons and
sugar to make her first batch. She starts selling her old-fashioned
lemonade at 20 cents per glass to passers-by. By the end of the day
she has run out of lemons and sugar, and has secured a small profit.
That night, she tells a friend about her success in the business world,
and her friend wants to get in on the action. The next day, the young
girl takes her earnings from the previous day, goes to the grocery
store and buys twice as much sugar and lemons as before. She sets
up two stands on different streets, getting her friend to manage one
of them for her. At the end of the day she collects the earnings her
friend made, letting her friend keep part of the profits as salary.
Before long, news of the business has spread, and the young girl now
has six friends running stands for her. She is starting to have trouble
keeping track of supplies, earnings, costs and wages. She decides to
computerize her business and calls on her parent (YOU!) for help. 103-10
sugar
103-11
4
sugar
103-12
103-13
5
Lemonade stand: Agent/Operations
103-14
Dataflow diagrams
process
data store
source
sink
data flow
103-15
6
Dataflow diagram rule 1
source sink
103-16
database 1 database 2
move
data
103-17
7
Dataflow diagram rule 3
A
B
103-18
grocery friend
store employee
supplies money
money 0 lemonade
make
and sell
lemonade
103-20
8
Second-level dataflow diagram
grocery inventory
store 3.0
supplies supplies
receipt add
lemons
payment and
sugar
1.0 4.0
purchase remove
supplies
purchase
record lemons
and
sugar 5.0
accounts
make
income lemonade
record 2.0
receive friend
income revenue employee
103-21
Database design
1.0
purchase
supplies Identify what information is to be
purchase
record stored/retrieved
accounts
Define “fields” in each record
Determine “types” and “formats”
income for each field
record 2.0
receive
income
103-22
9
Records, fields, formats
1.0 Purchase date: string (or …)
item: string
purchase
supplies
quantity: integer
purchase cost: float
record
Income date: string (or …)
accounts
from: string
amount: float
income
record 2.0 date: 3 March 2001
receive 03/03/01
income 2001-03-03
20010303
Database operations
1.0
1. Operations specified in dataflow diagram
purchase
supplies
add purchase record
purchase add income record
record
these involve appending data to the end
accounts of a transaction file
income
record
2. Operations required by users
2.0
calculate account balance
receive
income
summarize purchases
summarize income
reports generated by processing
transaction file in one of three ways,
based on user’s request
103-24
10
Ada Lovelace “Mother of all programmers”
Born: 10 December, 1815, London (Lord Byron’s daughter)
Died: 27 November, 1853
103-26
Questions
1. The word “system” in the phrases “system analysis” and “system
design” actually refers to two different systems. What are they?
2. What are the three basic steps in system analysis?
3. Under what circumstances should you use top-down design, and
under what circumstances should you use evolutionary design?
4. What are the seven steps (the “seven steps to heaven”) in the
simplified system design cycle?
5. What are the four basic elements in a dataflow diagram?
6. In a typical accounts system (such as the “lemonade stand”), there
are two types of database operations: ones specified in the
dataflow diagram and ones required by users of the system. Give
two examples of the first kind and three of the second kind.
7. What is a “structure chart”?
103-27
11
Questions (cont)
8. An established wholesale paper warehouse wants to computerize its sales, inventory and customer
billing systems. The warehouse buys its stock directly from the manufacturer in packages of very
large sheets of paper. It cuts and sells packages of smaller paper sizes to various printers and
stationers.
The wholesaler’s sales people bring purchase orders from the customers to the warehouse and
give them to the stock clerk. The clerk checks first to see if the order can be satisfied with offcuts
(paper ends left over from previous orders after cutting). If no suitable offcuts are available, the
clerk sends a stock handler to retrieve new stock from the warehouse shelves. Once the
appropriate stock has been collected together, the stock clerk sends it to the paper cutter who
trims it to the desired dimensions. Any useable offcuts are returned to the stock clerk in case they
can be used for subsequent purchase orders. The cutter sends the trimmed stock to the shipping
clerk who checks to see if the order has been satisfied correctly. If there are any problems, the
shipping clerk sends the trimmed stock back to the stock clerk who corrects the order and sends it
back by way of the cutter. Once the shipping clerk has a correctly filled order, it is given to the
truck driver for delivery, and the purchase order is sent to accounting for appropriate billing.
103-28
12