awkward-py / C-ATM

This simple program simulates an ATM machine, allowing users to check their balance, withdraw money, deposit money, and exit the service. It's a basic example to help you understand how C programming can be used to create interactive applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ATM Service

ATM

Introduction

Welcome to the ATM Service! This simple program simulates an ATM machine, allowing users to check their balance, withdraw money, deposit money, and exit the service. It's a basic example to help you understand how C programming can be used to create interactive applications.

Features

  • Check your account balance.
  • Withdraw money from your account.
  • Deposit money into your account.
  • Exit the ATM service.

Requirements

  • C Compiler (e.g., GCC)

Usage

  1. Clone the repository or download the source code.
  2. Compile the code using your C compiler.
    gcc ATM.c -o ATM
  3. Run the executable.
    ./ATM

Instructions

  • Enter your debit card number.
  • Enter your 4-digit secret PIN (Default PIN: 1234).
  • Choose an option from the main menu.
    • Check Balance (Option 1)
    • Withdraw Money (Option 2)
    • Deposit Money (Option 3)
    • Exit (Option 4)

Example

Please enter your debit card number: 1234
Please enter your 4-digit secret PIN: 1234

Please choose an option:
1. Check Balance
2. Withdraw Money
3. Deposit Money
4. Exit

Enter your choice: 1

Your balance is Rs. 12000

Contribution

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This simple program simulates an ATM machine, allowing users to check their balance, withdraw money, deposit money, and exit the service. It's a basic example to help you understand how C programming can be used to create interactive applications.


Languages

Language:C 100.0%