Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 1.18 KB

README.md

File metadata and controls

10 lines (10 loc) · 1.18 KB

ATM 💳

This is an ATM simulator where users can view their account balance and withdraw or deposit money.

About

The purpose of this Java Application was to learn the Java fundamentals as well as an introduction to Java GUI programming.

How it works

After the card is inserted by clicking on it, the user has to introduce a PIN using the ATM buttons. For this demo, the correct PIN numbers correspond to the initialized cards defined with the class Card. After pressing the Enter button on the ATM, the typed input number from the text field is compared to the PIN of each card from an array named “cardsList”. The account information (card ID, PIN, balance) associated to that specific card is saved in a private variable called “Account”, which helps in manipulating data for future transactions. The user can view the account balance and withdraw or deposit money. The withdrawal is possible only if the entered amount is less than or equal to the balance. After the user withdraws or deposits money, the account balance will always update.

Demo

Check it out: https://youtu.be/PBaQbJRhR54

Screenshots