The systems life cycle

35
The systems life cycle By Odaly Fernandez

description

 

Transcript of The systems life cycle

Page 1: The systems life cycle

The systems life cycle

By Odaly Fernandez

Page 2: The systems life cycle

Stages of the systems life cycle

What is a systems life cycle?

Analysis

Design

Development and testing

Implementation

Documentation

Evaluation

Page 3: The systems life cycle

ScenarioThe company called Biashara Street Building Supplies in Nairobi, Kenya, buys bricks, cement, gravel, sand and roof tiles from big companies and then sells them in smaller quantities to local house builders.The company is run by two directors called Peter and Irene. It employs two secretaries, three sales people and two truck drivers.It has a computer, but this is mainly used for creating word-processed letters and sending emails to customers. Its only other use is to keep records of the company’s customers on a database.One secretary, Josephine, deals with the workers’ personal information and is also in charge of keeping customer details.The other secretary, Mary, keeps information about the hours worked by the workers and also processes orders from customers.Irene is in charge of the paying of the workers.Peter and Irene feel that they could make better use of their computer system and need a systems analyst to look at how the computer is used, and to advise them whether or not their business would improve if they made increased use of the computer. They have invited Daniel to perform this role.

Page 4: The systems life cycle

Analysis

Collecting information on how the existing system works

Establishing its inputs, outputs and processing

Recording information Identifying problems

Page 5: The systems life cycle

Analysis

Why do we need the analysis stage? To identify suitable hardware and software for a

new system To identify user and information requirements

Page 6: The systems life cycle

Analysis – Collecting information

Examination of documents Questionnaires Interviews Observation

Page 7: The systems life cycle

Analysis – Establishing the inputs, outputs and processing in the existing system

Example 1: payroll system Inputs: details of the workers Processing: calculation of the payrolls Output: payslips

Example 2: orders system

Page 8: The systems life cycle

Analysis – Recording information about the current system

Data flow diagram.

Orders SystemContext Diagram

Orderprocessing

system

SuppliersCustomersCustomersCustomers

Orderprocessing

system

Customers

Orderprocessing

system

Customers

Orderprocessing

system

Customers Suppliers

Orderprocessing

system

Customers

orders

invoice invoice

orders

Page 9: The systems life cycle

Analysis – Recording information about the current system

Suppliers

Process order

Customers

Issue receipt

Ship goods

Orders

Inventory

orders

rejected orders

Order suppliesShipping details

updated product record

order details

supply orders

receipts

order details

receipts

Page 10: The systems life cycle

Analysis – Results

Identifying suitable hardware and software for a new system

Identifying the user and information requirements

Page 11: The systems life cycle

Activity

Answer question 1, page 76.

Page 12: The systems life cycle

Design

The inputs to the system The outputs from the system The files and/or databases needed to store

the data The processing required to produce the

outputs Any validation checks that will be needed The data needed to test the system

Page 13: The systems life cycle

Design - Inputs

Designing data collection forms

Page 14: The systems life cycle

Design Inputs

A well designed data collection form

Page 15: The systems life cycle

Design - Inputs

Screen layouts

Page 16: The systems life cycle

Design - Inputs

Screen layouts

Page 17: The systems life cycle

Design - Outputs

Designing report layouts

Page 18: The systems life cycle

Design - Outputs

Designing screen displays

List of records

Page 19: The systems life cycle

Design – data/file structures

The files and/or databases needed to store the data. Example: for the payroll system we need the master file and the transaction file

Page 20: The systems life cycle

Design – data/file structures Systems flowchart

Payrolltransaction

file

Validatedtransaction

file

Sortedtransaction

filePayrollmaster

file

Updatedmaster

file

Vaidation

Sort

Process payroll

Managementreports

Payslips

Error reports

Page 21: The systems life cycle

Design – data/file structures

The master file would have the following attributes: Field names Field types Field lengths Validation rules Field descriptions Selection of key field

Page 22: The systems life cycle

Design - Validation

A validation routine checks that input data is sensible and valid before processing. However validation rules do not guarantee that the data typed in is correct.

Range check. Examples: A secondary school student is likely to be aged

between 11 and 16. The range check for the field age would be >=11 and <=16.

The maximum marks for AS students is 200. So, the range check would be…

Page 23: The systems life cycle

Design - Validation

Length check. Checks the data is not too short or too long. Examples: Telephone numbers in Spain are 9 digits long. So,

the length check validates that no more and no less than 9 digits are entered.

A NIE in Spain has this format X1234567R. The length check would be…

Page 24: The systems life cycle

Design - Validation

Format check. Checks the data is in the right format. Example: The NIE in Spain has this format X1234567R.

The format check would ensure that the first character is a letter, the next 7 characters are digits, and the 9th character is a letter.

Page 25: The systems life cycle

Design - Validation

Invalid character check. Example: I have a password field, and I only want the

following characters to be entered: a to z, A to Z, 0 to 9, and nothing else. So, the characters: ?, >, *, etc. will be invalid characters and the “invalid character check” won’t accept them.

Page 26: The systems life cycle

Design - Validation

Check digit. Designed to capture human transcription errors. Example: ISBN. 13 digits, the last one is the check digit.

This is an ISBN: abcdefghijklm

m = 10 – {(1a + 3b + 1c + 3d + 1e + … + 3l) mod 10} Barcode

This is an barcode: abcdefghijklm

m = 10 – {(3a + 1b + 3c + 1d + 3e + … + 1l) mod 10}

Page 27: The systems life cycle

Design – Other ways of reducing errors when inputting data

Coding data. Examples: Instead of typing in the word “Female” in a field Gender, we could type in “F”.

Instead of “True” or “False”, type in “T” or “F”

Page 28: The systems life cycle

Design – Specifying the required hardware

If there is a heavy volume of data then the systems analyst would recommend a laser printer, and not an inkjet printer.

If the systems analyst determines that the articles should be bar-coded, then it is appropriate to use a bar code reader.

Page 29: The systems life cycle

Design – Specifying the required software

Off-the-shelf software. Which is already written and available.

Purpose-built software. Which has to be specially written to solve the problem.

Page 30: The systems life cycle

Design – Specifying the required software

Off-the-shelf software Advantages:

Cheaper as it is mass produced Available straight away Testing rigorously carried out by the developers Helplines with operators who have had to deal with a wide

range of problems Disadvantages:

May be difficult to adapt to the particular use May have several distracting extra features unsuitable for

the use May not necessarily match up with the existing system and

software use

Page 31: The systems life cycle

Design – Specifying the required software

Purpose-built software Advantages:

Designed specifically for the task Does not have to be adapted for use Programmers can make any changes required

Disadvantages: Costs more to pay programmers to write code specifically

for the task Testing limited to the perception of use by the programmer Support limited to the team of programmers Can take a long time to develop

Page 32: The systems life cycle

Activity

Answer question 2, page 76.

Page 33: The systems life cycle

Development and testing Testing strategies.

Produce a test plan using test dataTest Test

dataExpected results

Actual results Comment

Input hours worked

(max. hours worked in a week = 65)

-1 Rejected Error message Abnormal data – the system works as expected

65 Accepted Wages calculated Extreme data – the system works as expected

0 Accepted Wages calculated but result was 0

Extreme data – the system works as expected

40 Accepted Wages calculated Normal data – the system works as expected

140 Rejected Error message Abnormal data – the system works as expected

Abc Rejected Error message Abnormal data – the system works as expected

Page 34: The systems life cycle

Development and testing

Using live data. Compare the results of the new system with the

results of the old system. Example: use the hours worked in past weeks, and compare the payslips with the ones the new system generates.

Page 35: The systems life cycle

Development and testing

Activity: Create a table called Student with the fields:

idstudent, name, marks Produce a test plan for the marks of the students,

taking into account that the minimum mark is 0 and the maximum is 200.

Produce a test plan for idstudent, where idstudent has 8 characters, the first and last character should be a letter, the rest of the characters are digits from 0 to 9.