Skip to content

mushkaur-789/Learning-COBOL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COBOL LEARNING EXERCISES

This repository contains my COBOL practice programs. I am currently learning the fundamentals of COBOL, including basic syntax, data types, control structures, and simple file handling. These programs reflect my progress as I build my skills step by step toward becoming a COBOL developer.

EXERCISES LIST AND DESCRIPTION

--> ex4.cbl // PROGRAM FINISHED exercise: Ask to the user 3 numbers and do the addition. Also use a variable that will incremante everytyme you ask for a new number. For example if we ask for 2 number instead of asking 2 times we ask just one time.

--> ripasso.cbl // PROGRAM FINISHED In this file i did an exercise for myself just to revise few things. The exercise is: Ask to the user for his name and for his date of birth. From his date of birth calculate the user's age.

--> cbloper.cbl // PROGRAM FINISHED In this file i started working on data, operations, how to take input from the user and how to display them. The exercise is about showing to the user a menu of math operations and let him choose which one. After choosing and making sure that the choice is valid i ask to the user input numbers for calculation.

--> PHNADD01.CBL and PHNRD01.CBL In this exercise, I learned the basics of file handling in COBOL, including what a file, record, and field are, and how to define a file both logically and physically. I built a step-by-step exercise program that asks the user for first name, last name, and phone number, writes each record to a file, and keeps asking until the user decides to stop. Then, the program reopens the file, reads all records, and displays them using a PERFORM ... UNTIL loop.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages