Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1a.

1-input 2-processing 3-output 4-storage

bi.

ii. to be inserted – 0103, 0106

iii. 0101, 0103, 0104, 0105, 0106, 0107, 0110

iv. Validation is used to ensure that the information is entered correctly.

v. If the transaction file is not properly sorted a job can enter into an

infinite loop.

4ai. 2, 25, 17, 20

ii. Beef would be on aisle number 2 and item number 22 indicates that

there is no beef.

iii. In sequential file organization files are stored in the order they are

inputted; direct file organisation is when records are retrieved using a

search argument and index sequential files are stored with the help of a

primary key.

iv. The type of file organisation used is index sequential and the name of

the aisle column is the index.

6a. Device B because the numbers go up in ascending order.

b. DEVICE A - 98, 84,105,39,31,78,109, 63 DEVICE B - 31,

39,63,78,84, 98,105,109

c. Read each number

If it number is not equal to 39 write number to new file

If number equal to 39 don’t write number to new file


di. The file access type is indexed sequential.

ii.go through th e index one record at a time , look at the highest key field

, if the highest key in the index table is < 62 then the record is not in that

block of data

If the highest key in the index table is > 62 then the record is in that block

of data. Once the block is located search for 62 in that block.

You might also like