• Tidak ada hasil yang ditemukan

DATA INPUT METHODS - Nptel

N/A
N/A
Protected

Academic year: 2024

Membagikan "DATA INPUT METHODS - Nptel"

Copied!
42
0
0

Teks penuh

(1)

MODULE 7 MODULE 7

DATA INPUT METHODS

LEARNING UNITS

7.1 Data Dictionary : its development and use 7.2 Data input methods : Batch and Interactive

7.3 Coding technique for unique data representation.

Systems Analysis And Design

Systems Analysis And Design

© © V. Rajaraman

(2)

1. The need for a data dictionary for an application 2. How to develop a data dictionary for an

application

3. Design of forms and screens for data input.

4. Need and methods of coding data elements.

5. Coding schemes for automatic error detection while inputting data

6. Need for and design of input data validation methods.

LEARNING GOALS

Systems Analysis And Design

Systems Analysis And Design

© © V. Rajaraman

1 of 41
(3)

MOTIVATION

ƒ During systems analysis it is essential for an analyst to decide the necessary and sufficient data for

designing an application.

DFD gives the dataflows and stores of a system

ƒIndividual data elements of dataflows and stores can be catalogued

ƒSuch a catalogue with description of each element and their types will be an invaluable aid while

designing a system.

Systems Analysis And Design

Systems Analysis And Design

© © V. Rajaraman

2 of 41
(4)

MOTIVATION

ƒ A catalogue will also bring out if any data is duplicated/missed

ƒ A catalogue will also be an invaluable documentation of a system

ƒ Such a catalogue is called Data dictionary-It is actually metadata,i.e.,data about data.

Systems Analysis And Design

Systems Analysis And Design

© © V. Rajaraman

3 of 41
(5)

MOTIVATION

ƒ After data dictionary is designed one needs to determine how the data is to be input.

ƒData input methods depend on whether the data is

filled in by customers in forms manually and later input by data entry operators or data is directly input by users on PC’s.

ƒWe thus need to understand both these methods.

Systems Analysis And Design

Systems Analysis And Design

© © V. Rajaraman

4 of 41
(6)

MOTIVATION

Systems Analysis And Design

Systems Analysis And Design

© © V. Rajaraman

5 of 41

ƒUnless data input is correct, results will be unreliable

ƒInformation systems normally have a large volume of data

ƒBecause of large volume special controls are needed to ensure

correctness of data input - otherwise it is difficult to find which data is incorrect

ƒThus it is important to design appropriate data input methods to prevent errors while entering data

ƒKey data elements are important to identify records.They need to be unique,concise and understandable by users.Thus we need to study methods of coding key data element

(7)

ƒ Data dictionary is a catalogue of all data used in an application, their names, type and their origin.

ƒ In other words it is data about data which is called metadata

ƒ Data dictionary gives a single point reference of data repository of an organization

ƒ It is thus an important documentation which would be useful to maintain a system

WHAT IS DATA DICTIONARY

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

6 of 41

7.1.1

(8)

HOW IS DATA DICTIONARY DEVELOPED?

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

7 of 41

7.1.2

ƒ Starting point is DFD Example :

Consider the Receiving office process described in Module 3.

DFD is reproduced below.

Vendor

Receiving Process

Inspection Office

Purchase Office Orders

Delivery note

Items Received note

Discrepancy note

We will recall the word statement from requirement specification now.

(9)

WORD STATEMENT OF REQUIREMENTS

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

8 of 41

7.1.3

ƒ Vendor sends items with a delivery note while

fulfilling an order (along with the physical items) to a receiving office.

ƒ Receiving office compares a delivery note against

order placed.If there is a discrepancy a discrepancy note is sent to purchase office.

ƒ Actual items received note is sent to the inspection

office along with items received.

(10)

DATA ELEMENTS IN DATA FLOW

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

9 of 41

7.1.4

From word statement we derive data elements in each data flow.

1. Delivery note

ƒ Order no,Vendor name,Vendor address,item name,delivery date,quantity supplied,units

Item name and Vendor name may not be unique to ensure uniqueness we assign unique codes for them.Name is however still kept to aid people.

Thus delivery note is:

Delivery note = Order no + Vendor code + Vendor name + Vendor address + item code + item name + delivery date + quantity supplied + units.

(11)

DATA ELEMENTS IN DATA FLOW

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

10 of 41

7.1.5

Discrepancy note : Order no + Vendor code + Vendor name + Vendor address + item code + item name + delivery date + quantity supplied + units + excess/deficiency + no of days late/early.

Items received note = Delivery note Data in data store

Order records = order no + vendor code + vendor name + vendor address + item code + item name + order date + qty ordered + units + delivery period.

(12)

DATA DICTIONARY FORMAT

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

11 of 41

7.1.6

Data dictionary gives in detail the characteristics of a data element.

Typical characteristics are:

Data name : Should be descriptive and self explanatory.This will help in documentation and maintenance

Data description : What it represents Origin : Where the data originates

e.g. input from forms, comes from receiving office, keyed in by user etc.

Destination : Where data will flow and will be used (if any)

Data Type : numeric, alphanumeric,letters(or text),binary(0 or 1;

True or False),Integer, Decimal fixed point, real(floating point), currency unit, date

(13)

TYPICAL CHARACTERSTICS OF DATA ELEMENTS(CONTD)

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

12 of 41

7.1.7

Length : no of columns needed Limits on value : (if relevant)

e.g. upper and lower bounds of value (age>0,<100) Remarks : (if any)

(14)

EXAMPLE OF DATA DICTIONARY ENTRY

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

13 of 41

7.1.8

Name : Order number

Description : Used to identify order given to vendor Origin : Part of delivery note from vendor

Destination : Receiving process Data type : Numeric Integer

Length : 8 digits

Limits on value : >000,<=99999999

Actual value not relevant.Used only as unique identifier Remarks: It is a key field.

(15)

EXAMPLE OF DATA DICTIONARY ENTRY(CONTD

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

14 of 41

7.1.9

Name : Delivery date

Description : Date item is to be delivered

Origin : Part of delivery note from vendor.Is also in orders data store which is input to receiving process

Destination : Receiving process Data type : Numeric Integer

Length : 8 digits

Limits on value : Date field in the form DDMMYYYY.

Should satisfy constraints of a date in calendar Remarks: Blank fields not allowed.

e.g.05082004 is ok but not 582004

(16)

DATA DICTIONARY USES

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

15 of 41

7.1.10

ƒ Data dictionary can be enormous in size.Requires careful development. However,it is centralized reference document.

ƒ Invaluable resource to design

•Input forms and screens

•Data checking programs

•Process specification

•Database

ƒ Very useful in understanding and maintaining system

(17)

DATA INPUT METHODS

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

16 of 41

7.2.1

ƒ ON-LINE - User directly Enters data using screen prompts

ƒ OFF-LINE -Forms filled by users- for example- candidates for admission to a college fill forms

ƒ Data from forms keyed in by a data entry operator

(18)

ERROR SOURCES

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

17 of 41

7.2.2

ƒ Errors in on-line data entry due to poor screen design. System should inform the user immediately when wrong data is input

ƒ Errors in off-line data entry due to bad form design and human errors by users and data entry operator

ƒ System should prevent user making mistakes by

•Good form design by leaving enough space for writing legibly

•Clear instructions to fill form

ƒ System should prevent data entry operator making mistakes by

•Good form design

•Reducing key strokes

•Immediate error feedback

(19)

OFF LINE DATA ENTRY - PROBLEMS

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

18 of 41

7.2.3

ƒ Forms batched

ƒ Desirable for the machine to give message when input is wrong.Not always possible

ƒ Error found after elapse of time

ƒ Need good controls to automatically detect and if

possible correct errors

(20)

BATCH DATA ENTRY

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

19 of 41

7.2.4

Data entered in forms

Keyboard

Data entry Input file Data validation program

Update program

Data store Data processing

program Output report

Error report Error

batch Input

batch

(21)

BATCH DATA ENTRY

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

20 of 41

7.2.5

Name

Address

Bad design : Tendency will be to fill name on top line. Not enough space for letters of address

Individual

Hindu undivided family Parent/Guardian of minor

Tick as applicable

Bad design : Choices are not codified.

Data entry operator will be confused.

(22)

BATCH DATA ENTRY

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

21 of 41

7.2.6

Enter date

Enter time Day month Year

(Good design) Enter date

Hr Min Sec

Enter time

(Good design)

(Bad design)

(Bad design)

(23)

BATCH DATA ENTRY

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

22 of 41

7.2.7

Name

Only address (do not Repeat name)

Pin I am applying as:

Individual Hindu undivided family

Parent or guardian Of minor

Clear instructions . Enough space for entry manually.Data entry operator can be simple instructions for data entry

Enter name and address using capital letters Use one box for each alphabet

Shri Smt Kum

Tick one of the boxes below

1 2 3 Tick any of the following

(24)

COMPUTER READABLE FORMS

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

23 of 41

7.2.8

ƒ As manual data input from forms are slow and expensive attempts have been made to automate form reading using scanners

ƒ Needs hand writing recognition and correct form alignment – Not very successful

ƒ However if forms require just darkening some pre-defined areas they can be machine read and interpreted.

ƒ Example – Multiple choice questions in exams where specific boxes are darkened based on the choice.

(25)

INTERACTIVE DATA INPUT

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

24 of 41

7.2.9

ƒ Advent of PC’s and client/server model in computer networks, interactive data input is now widely used

ƒ Advantages are instant response when data is input so that errors are immediately corrected.

ƒFlexibility in screen design which minimizes manual effort

ƒUse of mouse and icons simplifies pre-determined

choices of data

(26)

INTERACTIVE DATA INPUT

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

25 of 41

7.2.10

Three main models of interactive data input :

ƒ Menus

ƒ Templates

ƒ Commands

(27)

MODELS OF DATA INPUT

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

26 of 41

7.2.11

MENUS

User presented several alternatives and asked to type his/her choice

EXAMPLE

SELECT ALTERNATIVE Type 1 For entering new student record Type 2 For deleting student record

Type 3 For changing student record Your choice

(28)

MODELS OF DATA INPUT

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

27 of 41

7.2.12

TEMPLATE

ƒ Template analogous to form

ƒ Has features to reject incorrect data input using built-in program

ƒ User friendly visual presentation

Example Roll no Name

Dept code Year

Hostel code

Pre-programmed to reject incorrect Roll no,Dept code,Year, Hostel code

FIRST NAME/INTIALS LAST NAME

CE CS ME EE IT CODES

A B C D

(29)

MODELS OF DATA INPUT

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

28 of 41

7.2.13

Interactive commands guides user through alternatives Example

Computer : Did you request deletion of record ? Type Y or N

User : Y

Computer : Give student roll no User : 56743

Computer : Is name of the student A.K.Jain?

Type Y or N User : Y

Computer : Is he 1st year student Type Y or N

User : Y

Computer : Shall I delete name?

User : Y

(30)

MODELS OF DATA INPUT

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

29 of 41

7.2.14

ƒ Normally all three models will occur together in application .In other words Menu, Forms and

Commands are not mutually exclusive

ƒ Graphical user interface design very rich area-

languages such as Visual Basic simplifies design of user interface

ƒWe have given only a flavor of the topic

(31)

WHY DO WE NEED CODES?

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

30 of 41

7.3.1

NEED FOR CODING

ƒ UNIQUE IDENTIFIER

-Example Roll no instead of name

ƒ CROSS REFERENCING BETWEEN APPLICATIONS -unique Roll no may be used in examination

records,accounts, health centre

ƒ EFFICIENT STORAGE AND RETRIEVAL

- Codes concise- a long name will have a shorter roll no

(32)

WHAT ARE THE REQUIREMENTS OF A GOOD CODE?

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

31 of 41

7.3.2

ƒCONCISE - Smallest length to reduce storage and data input effort

ƒEXPANDABLE - Add new members easily

ƒMEANINGFUL- Code must convey some information about item being coded

ƒCOMPREHENSIVE - Include all relevant characteristics of item being coded

ƒPRECISE - Unique, unambiguous code

(33)

WHAT METHODS DO WE USE TO CODE

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

32 of 41

7.3.4

1) SERIAL NO: Assign serial number to each item

2) BLOCK CODES: Blocks of serial numbers assigned to different categories.

3) GROUP CLASSIFICATION CODE- Groups of digits/characters assigned for different characteristics

Roll no 87 1 05 2 465

Year admitted

Term

admitted Dept Status UG/PG

Serial no In dept (use meaningful characters) 87 1 CS UG 465

4) SIGNIFICANT CODES - Some or all parts given values

Roll no BA 1 95 C B R

Banian Male Cotton Color

(blue) Chest size

cms

Style

(Round neck)

(34)

CHARACTERSTICS OF CODES

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

33 of 41

7.3.5

Codes Concise Expandable Meaningful Comprehensive Precise

SERIAL NO Yes Yes No No Yes

BLOCK CODES

Moderate Yes No No Yes

GROUP

CLASSIFICA- TION CODE

No Yes Yes Yes Yes

SIGNIFICANT CODE

No Yes Yes Yes Yes

Characteristics

(35)

ERROR DETECTION CODE

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

34 of 41

7.3.6

ƒIncorrect data entry can lead to chaos

ƒMistakes occur as volume of data processed is large

ƒNeed to detect and if possible correct errors in data entry

ƒError detected by introducing controlled redundancy in codes

ƒError control digits added based on statistics of types of errors normally committed during data entry

(36)

MODULUS 11 CHECK DIGIT SYSTEM

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

35 of 41

7.3.7

ƒ Error detection digit added at the end of a numeric code

ƒ Code designed in such a way as to detect all single transcription and single transposition errors which is 95% of all errors

Single transcription error-Æ49687Æ48687 Single transposition errorÆ 45687Æ48657

ƒ Given code 49687 modulus check digit obtained as follows:Multiply each digit by Weights of 2,3,4 etc starting with least significant digit

7*2+8*3+6*4+9*5+4*6=131

131/11=11,remainder 10; or 131 mod (11) =10;

(11-10)=1 append it to the code

ƒ The code with check digit=496871

ƒ If remainder is 1 then append(11-1)=10 code as X

(37)

ERROR DETECTION

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

36 of 41

7.3.8

496871 486871

Correct code Code as entered

Error detection - 1*1 + 7*2 + 8*3 + 6*4 + 8*5 + 4*6

= 127/11 Remainder != 0 => Error

496871 416879

Error detection - 9*1 + 7*2 + 8*3 + 6*4 + 1*5 + 4*6

= 100/11 Remainder != 0 => Error

(38)

WHY DOES MODULUS 11 CHECK DIGIT WORK

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

37 of 41

7.3.9

Conditions

ƒ Given dn,dn-1,……..d1 where d1 is the check digit (∑Widi )mod N=0 by design

n i=1

What should be the values of N & Wis Single transcription error: dk become t

(∑Widi )=

n

i=1 i=1

(∑Widi ) + t n

Wk - Wk dk

As (∑Widi ) mod N=0 (t-dk ) Wkmod N = 0 (t- dk ) Wk =p.N where p is any integer

1. 0<Wk<N

2. As [t-dk] < 10 and Wk < N, N>10

3. Product of integer not a prime => N a prime 4. Smallest prime > 10 =11 => N=11

(39)

WHY DOES MODULUS 11 CHECK DIGIT WORK

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

38 of 41

7.3.10

Single transposition error

Let dk and dm get interchanged

[ ∑ Wi,di + (dkWm + dmWk - dkWk - dmWm )] mod N = 0

Or(dk-dm)(Wm-Wk) = p.N

1. (Wm - Wk) = 0 => Weights distinct

2. (dk- dm)< 10 If N> 10 equation satisfied 3. If N prime product cannot be prime

therefore N =11 satisfies conditions n

i=1

(40)

OTHER CHECKING SYSTEMS

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

39 of 41

7.3.11

ƒUSE MODULO N CHECK WITH N PRIME > LARGEST CODE CHARACTER VALUE

ƒFOR HEXADECIMAL CODES SYMBOLS = 16, N =17

ƒFOR ALPHANUMERIC CODES 26 LETTERS 10 DIGITS 36 SYMBOLS

ƒTherefore N=37.

(41)

VALIDATING INPUT DATA

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

40 of 41

7.3.12

ƒ WHEN LARGE VOLUME OF DATA IS INPUT

SPECIAL PRECAUTIONS NEEDED TO VALIDATE DATA

ƒ VALIDATION CHECKS :

ƒ SEQUENCE NUMBERING - detects missing record

ƒ BATCH CONTROL - Use batch totals

ƒ DATA ENTRY AND VERIFICATION-Dual input

ƒ RECORD TOTALS-Add individual values for checking

ƒMODULUS 11 CHECK DIGIT

(42)

CHECKS ON INDIVIDUAL FIELDS

System Analysis And Design

System Analysis And Design

© © V. Rajaraman

41 of 41

7.3.13

ƒ Radix errors - For example seconds field cannot exceed 60,month field cannot exceed 12

ƒRange check - Fields should be within specified range

ƒReasonableness check - Telephone bill cannot be more than 10 times average bill of last few months

ƒInconsistent data - For example : 31-04-99

ƒIncorrect data- Batch total checks this

ƒMissing data - Batch control data checks this

ƒInter field relationship check -

ƒFor example - Student of 8th class cannot have age > 25

Referensi

Dokumen terkait

In spite of the large variation of most of the semen characteristics among rams of the two breeds, seasonal variation in semen quantity (volume, concentration and total number

The fate of a large proportion of attempted releases is abject failure: 65% and 41% of agents released to control insect and weed pests, respectively, have never got off the

Data mining is the process of automatically searching large amount of data for patterns and recognition of specific characteristics. A statistical perspective of Data Mining

By using a panel of countries for 1960–1995 we show that the intensity of capital controls, the exchange rate, the type of exports, and the volume of trade appear to affect the long

As large data applications for Chinese e-commerce business is not yet mature, and the future development of large data needs to strengthen industrial clusters, and strengthen the

Powered by Experiments on Op-Amp Experiments on Op-Amp Configarations Experiments on Op-amp Applications Experiments: Op-amp as Filters DOWNLOAD VIDEOS Analysis of Data Sheets of

when sample data are used for estimating a population mean, sampling error is not be present because the observed sample statistic is same as the actual value of the population

‘Big data’ refers to large and unstructured datasets characterised by six main components known as the six Vs: volume, velocity, variety, veracity, validity, and volatility.502 These