Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/merttalug/basic-atm
A basic ATM project where users can manage their bank account
https://github.com/merttalug/basic-atm
atm java kodluyoruz loops patika-dev
Last synced: about 3 hours ago
JSON representation
A basic ATM project where users can manage their bank account
- Host: GitHub
- URL: https://github.com/merttalug/basic-atm
- Owner: merttalug
- License: mit
- Created: 2022-03-13T15:18:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-13T15:25:49.000Z (almost 3 years ago)
- Last Synced: 2024-11-05T11:32:53.952Z (about 2 months ago)
- Topics: atm, java, kodluyoruz, loops, patika-dev
- Language: Java
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Basic ATM
A basic ATM project where users can manage their bank account## Transactions
This ATM program has 4 basic functions :
1. Deposit Money
2. Withdraw Money
3. Balance Inquiry
4. Logout### Information
This ATM works by referencing the username as "patika" and the password as "dev123". If users enter one of the username or password incorrectly 3 times, they will block their accounts and terminate the program. The initial balance information of the users is set at $2800.
```
int right = 3;
int balance = 2800;
int select;
while (right > 0) {
System.out.println("Your Username: ");
userName = input.nextLine();
System.out.println("Your Password: ");
password = input.nextLine();
if (userName.equals("patika") && password.equals("dev123")) {
System.out.println("Hello, Welcome to the Patika Bank...");
do {
System.out.println("1- Deposit Money\n" + "2- Withdraw Money\n" + "3- Balance Inquiry\n" + "4- Logout");
System.out.print("Please select the banking transaction you want to do : ");
select = input.nextInt();
switch (select) {
case 1:
System.out.println("Enter the amount of money you want to deposit: ");
int deposit = input.nextInt();
balance += deposit;
break;
case 2:
System.out.println("Enter the amount of money you want to withdraw: ");
int withdraw = input.nextInt();
if (withdraw > balance) {
```