Skip to content

ATM.cpp A simple ATM system in C++ for managing user accounts. It allows users to register, withdraw money, change passwords, view balances, and more. The program runs in a loop, offering multiple options until the user decides to exit. Easy to use and extend, with basic ATM features.

Notifications You must be signed in to change notification settings

ElouahabiAdam/ATM-IN-C-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🏧 Simple ATM

This is a simple ATM simulation program written in C++. It allows users to input their data, check their balance, change their password, withdraw money, waste money, and view their personal information.

✨ Features

  • πŸ“ Input user data (username, password, balance)
  • πŸ’° Check balance
  • πŸ”’ Change password
  • πŸ’Έ Withdraw money
  • πŸ—‘οΈ Waste money
  • πŸ‘€ View personal information

πŸš€ Usage

  1. Compile the program using a C++ compiler:

    g++ atm.cpp -o atm
  2. Run the compiled program:

    ./atm
  3. Follow the on-screen instructions to interact with the ATM.

πŸ“‚ Code Structure

  • UserData struct: Stores user information such as username, password, and balance.
  • inputData method: Prompts the user to input their username, password, and balance.
  • withdraw function: Allows the user to withdraw money from their balance.
  • wasteMoneyfunction: Allows the user to waste money, subtracting it from their balance.
  • printChoices function: Displays the available choices to the user.
  • main function: The entry point of the program, handles user interaction and calls the appropriate functions based on user input.

πŸ“ Example

*** Welcome to the Simple ATM ***
1. Your balance
2. Change your password
3. Withdraw money
4. Waste money
5. Personal information
6. Exit

About

ATM.cpp A simple ATM system in C++ for managing user accounts. It allows users to register, withdraw money, change passwords, view balances, and more. The program runs in a loop, offering multiple options until the user decides to exit. Easy to use and extend, with basic ATM features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages