Syllabus
Jawaharlal Nehru Technological University (JNTU)- Post Graduate Syllabus of MCA, Semester II (From 2004 batch)- MC 2.7 - COBOL Lab
ANY 12 of the following should be completed and recorded.
Separate observation and record should be maintained.
NOTE: (i) All programs must be implemented in COBOL.
(ii) Input should be read from the standard input.
(iii) All programs should be menu-driven and interactive.
(iv) Concerned Staff Incharge of the Lab should evaluate and marks be recorded for observation and record separately, on day-to-day basis, for evaluation of sessional marks at the end of the semester.
1. Write a COBOL program to calculate Simple interest and Compound interest.
2. Write a COBOL program to find Factorial of a given number.
3. Write a COBOL program to check whether a given number is a Magic number or not.
4. Write a COBOL program for multiplication of two matrices.
5. Write a COBOL program to test all the editing characters.
6. Write a COBOL program to store electric consumers data in the table. Calculate units and amount to be paid.
7. Write a COBOL program to copy the contents of a table into a sequential file.
8. Write a COBOL program to create a file to store name, designation, basic. Read the same data and calculate HRA, DA, deductions, gross and net salary and store them in another file.
Basic HRA DA Deductions
< = 1000 - 10% - 25% - 3% - Gross = Basic + HRA + DA
1001 - 2000 - 15% - 30% - 3% Net Salary = Gross - Deductions
2001 - 3500 - 15% - 35% - 4%
> 3500 - 20% - 40% - 4%
9. Write a COBOL program to create a file to store name, phone number and number of calls. Read the same data and calculate the amount with following conditions :
Calls Rate / Call Bill Amount
< 150 - 0 - 200 There will be 5% service charge on bill amount.
151 - 350 - 0.8 for each extra call Write the output after calculation into a file whose
351 - 500 - 1.25 for each extra call format should be,
501 - 2000 - 1.5 for each extra call
> 2000 1.75 for each extra call
ATP TELE COMMUNICATIONS RATE / CALL
NAME PHONE NO. NO. OF CALLS SERVICE CHARGE AMOUNT
10. Create a relative file to store student data and delete any required record taking register number as relative key.
11. Write a program to perform all the bank transactions using indexed files.
12. Write a COBOL program which accepts all the information relating to EAMCET marks of students. Sort the records based on aggregate marks, marks in maths, physics, chemistry and age and give the ranking to the students and display the results in a suitable format.
13. Write a COBOL program to merge two files containing student records.
14. Write a program to call another program into the current program execution by Inter program communication.
15. Write a program to create a file to store name, sex, designation and income per year. Read the same data and calculate the tax with following conditions :
Taxable amount - % - Tax Taxable amount = Income - deduction
< = 40,000 - 0 - Deduction = Standard deduction + Savings
40,001 - 80,000 - 10 Standard deduction = 1/3 of income or 15,000 whichever is less for males;
80,001 - 1,20,000 - 20 and 18,000/- for females
> 1,20,000 - 30 Savings = 15% of the income
Output should be written into another file in the following format :
Income Tax receipt of Mr / Mrs :
Designation :
Income per year: Savings: Taxable amount:
Std. Deduction: Total deduction : Tax to be paid: