Git Product home page Git Product logo

atm_machine's Introduction

ATM machine

This repository contains notebook implementations of the atm machine with python3.

Process summary

The whole process goes as follows:

  1. The language option for the atm machine is set among English and Korean.
  2. A card is created with an ID and a pin. Such card can handle multiple accounts where we set the number of accounts to be 3 by default.
  3. Accounts are created with their unique IDs and balances.
  4. The card with multiple accounts is inserted to the atm machine. Since then, one can eject the card anytime. As the card is ejected, one should create a new card to insert it into the atm machine.
  5. To access the accounts within the card, one should enter the correct pin number. After the 5 wrong trials, the card is permanantly blocked from using the atm machine. Then, one should create a new card with a new ID that is not registered at the black list of the atm machine.
  6. As one is authorized to access to the accounts, the account index to view is entered. The index should be chosen among 1 to the number of accounts connected to the card(=3 by default). Since then, one can easily switch to other account by entering another index.
  7. With the chosen account, one could see balance, deposit, and withdraw. Note that the amount of withdrawl is limited to be less than or equal to the amount of balance.

Quick run

The easiest way to run the code is to run it in the browser on Colab. Please refer to the actual running example through the notebook's outputs.

Colaboratory is a free Jupyter notebook environment provided by Google that requires no setup and runs entirely in the cloud. The hosted runtime already includes python 3.7.13.

Contact

Any feedback is much appreciated! Drop me a line at [email protected].

atm_machine's People

Contributors

gokyeongryeol avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.