Home
About LSP
LSP 4 BCA
LSP 4 MCA
LSP 4 MBA
LSP 4 Biotechnology
LSP 4 BSc-Electronics
LSP 4 BBA
LSP 4 BCom
Project Titles
Seminar Titles
Videos
School Projects
COBOL Tutorial: (Based on M.G. University - BCA Programme)
UNIT 3: INTRODUCTION TO COBOL
History of COBOL
COBOL Coding Sheet
Basic Structure of a COBOL Program
COBOL Words
,
Data Names and Identifiers
,
Literals
Identification Division
and
Environment Division
Data Division
Level Numbers
and
Data Description Entry
Picture Clause
Editing Picture Clause
UNIT 4: PROCEDURE DIVISION
MOVE Verb
ARITHMETIC Verbs
:
ADD Verb
,
SUBTRACT Verb
,
MULTIPLY Verb
,
DIVIDE Verb
and
COMPUTE Verb
INPUT and OUTPUT Verbs
:
OPEN & CLOSE Verbs
,
READ Verb
,
WRITE Verb
,
ACCEPT & DISPLAY
Conditional Statements
:
IF Statement
,
IF .. ELSE .. Statement
and
Nested IF Statement
Conditions
:
Relational Condition
,
Sign Condition
,
Class Condition
,
Condition-Name Condition
,
Negated Simple Condition
and
Compound Condition
Sequence Control Verbs
:
GO TO Verb
,
STOP RUN
Corresponding Option
:
MOVE CORRESPONDING
,
ADD and SUBTRACT CORRESPONDING
Table Handling
:
OCCURS CLAUSE AND SUBSCRIPTING
PERFORM Statements
:
Simple PERFORM Statement
,
PERFORM With TIMES Option
,
PERFORM With UNTIL Option
,
PERFORM With VARYING Option
,
PERFORM With VARYING - AFTER Option
GO TO with DEPENDING ON phrase
UNIT 5: SEQUENTIAL FILES AND FILE PROGRAMS
FILE CHARACTERISTICS
FILE CONTROL Entries for Sequential Files
FILE DESCRIPTION Entries
INPUT OUTPUT Statements for Sequential Files
SORTING and MERGING of Files
LAB EXCERCISES AND SOLUTIONS (CYCLE -I)
Write a program in COBOL to find the Sum of Two Numbers.
Write a program in COBOL to read Three Numbers and find the Biggest among them.
Write a COBOL program to read a set of N integers and to calculate the number of numbers divisible by 9 and not divisible by 5 and their Sum.
Write a COBOL program to find the number of odd numbers, number of even numbers, sum of odd numbers, sum of even numbers and the total sum of numbers from a given set of numbers according to the users choice.
Write a COBOL program to generate first N Fibanocci Numbers.
The number of hours worked by an employee in a company and hourly rate are given. Deduct tax @ 10% of total salary if total salary exceeds 10,000/- otherwise 5%. Write a COBOL program to implement the above.
Given the sex and age of a number of people. Write a COBOL program to calculate the number of Males and Female and also calculate the number of males in the age group 25 and 35. Show the output in a neat format.
Given the number of hours worked and hourly wage rate. Write a COBOL program to calculate the gross pay and net pay for an employee by assuming that the tax deduction to be @ 10% of gross salary if it is less than 2,500/- and @ 20% otherwise.
Home
|
Resources
|
FAQs
|
Gallery
|
Contact Us