Skip to content

amdjadouxx/simple_bank_system_cobol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Banking System in COBOL

This COBOL program implements a simple banking system that allows managing customer accounts and transactions.

πŸ“‚ Code Structure

The program is divided into several main sections:

  • IDENTIFICATION DIVISION: Defines the program name.
  • ENVIRONMENT DIVISION: Specifies the input/output files used.
  • DATA DIVISION: Declares files and variables.
  • PROCEDURE DIVISION: Contains the main program logic.

πŸš€ Features

The program provides the following features:

  1. Create an Account 🏦: Allows creating a new account by entering the account number, first name, and last name.
  2. Deposit πŸ’°: Adds money to an existing account.
  3. Withdraw 🏧: Withdraws money from an existing account, ensuring sufficient funds are available.
  4. Check Balance πŸ“Š: Displays the current balance of a specified account.
  5. Exit ❌: Terminates the program execution.

πŸ“¦ Prerequisites and Dependencies

Before running the program, make sure you have a COBOL compiler installed. You can use GnuCOBOL:

πŸ”§ Installing GnuCOBOL

On Ubuntu/Debian:

sudo apt update && sudo apt install -y open-cobol

On macOS (via Homebrew):

brew install gnu-cobol

On Windows:
Download and install GnuCOBOL for Windows.

πŸ”„ Usage

πŸ“Œ Compilation

cobc -x main.cob

▢️ Execution

./main

πŸ“‚ Required Files

The program uses two files to store accounts and transactions:

  • comptes.dat: Contains account information.
  • transactions.dat: Stores records of performed transactions.

Ensure these files exist and are accessible before running the program.


About

A simple use of cobol to implement basic bank functions to learn COBOL basics

Topics

Resources

Stars

Watchers

Forks

Languages