| Course Code |
CS-03 |
| Course Title |
File Structure and Programming in COBOL |
| Assignment Number |
MCA(2)-03/TMA/2003 |
| Maximum Marks |
10
|
| Last Date of
Submission
|
15th October, 2003
|
This is a Tutor Marked Assignment. There are three questions in
this Assignment. Answer
all the questions. Each question carries equal weightage. You may use
illustrations and diagrams to enhance explanations. Please go through the
guidelines regarding assignments given in the Starter's Kit for the format
of presentation.
| Question 1: |
What is an Index
sequential file in COBOL? Suggest applications where indexed
sequential file will be of good use. Create an index
sequential file from the following input records (Write the
Program. Make suitable assumptions, if needed) Input File
: File Name : Books-details Organisation : Sequential File
Format: 1 - 10 ISBN Number of the Book 11 - 20
Accession Number 21 - 50 Book Name 71 - 72 Status (Available,
Issued, Gone for Binding, On Library Loan, Lost etc. in code of 2
digits) 73 - 80 Not used The created index file should be used
in generating the following reports: (i) The number
of total copies of all the books in the Library (ii) The
display of status of various books on searching through name or
author Write the program for generation of above
reports. |
| Question 2: |
Write a program in
COBOL that sorts the values in a vector (single dimensional
array). The program should also be able to search a given
value in the
vector. | |