How can you test whether a number is positive or negative in COBOL? Is nesting of IF statement is allowed in COBOL? How can IF statement were used for termination of a loop? Explain by giving an example.
Write DATA DIVISION entries to define a table having 12 elements
and to initialize the table to contain the number of days in each
of the 12 months of a year (Assume 28 for February).
What is the difference between a literal and figurative constant? How many different types of constants are there in COBOL?
What are the usages of following clause in COBOL? Illustrate with
the help of an example for each.
CS-03 File Structure and Programming in COBOL
Assignment Code : MCA(2)-03/Project/2007
Note : This is a Project. Answer all the questions. You may use illustrations and diagrams to enhance explanations.
An agency “Election Office of Delhi” maintains and processes the personal information about the citizens of Delhi. For this purpose they collect the following information listed about citizens given below:
CITIZEN-ID PICTURE X(4). // Citizen-key, an unique number
CITIZEN-NAME PICTURE X(20). // Citizen alternate key
CITIZEN-AGE PICTURE X(3).
CITIZEN-DOB PICTURE X(10). // Date of Birth
CITIZEN-ADDRESS PICTURE X(20).
CITIZEN-CITY PICTURE X(18).
CITIZEN-STATE PICTURE X(2).
CITIZEN-PIN PICTURE X(5).
CITIZEN-AREA-CODE PICTURE X(3).
CITIZEN-PHONE-NUMBER PICTURE X(7).
To conduct Elections and for some other purposes they need several
reports and other information. You do following tasks based on the
Find the Name and Address of Citizens living in Area Code “156”?
The department wants to send senior citizen cards to the citizens having Age more than 70 years. Write a program to print labels for each citizen. Where each label should appear as given below:
Address including City, State, and PIN Code.
Write a program to produce a report of citizens having exactly same “Name, Age and Date-of-Birth”, however other fields like address, City, State or phone number are different.
Write a program to produce a report to list all the citizens born on the same day in the year 2006.