-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathATM Machine code (python)
More file actions
60 lines (42 loc) · 1.66 KB
/
ATM Machine code (python)
File metadata and controls
60 lines (42 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import time
name = input(" ENTER YOUR FULL NAME: " )
print(" WAIT, WE ARE FETCHING YOUR DATA ")
time.sleep(1)
print(" █▒▒▒▒▒▒▒▒▒ ")
time.sleep(1)
print(' ███▒▒▒▒▒▒▒')
time.sleep(1)
print(' █████▒▒▒▒▒')
time.sleep(1)
print(' ███████▒▒▒')
time.sleep(1)
print(' ██████████')
time.sleep(2)
pin1 = 12345
balance = 10000
while True:
pin = int(input(" PLEASE ENTER YOUR PIN: "))
if pin == pin1:
options = (int(input('''PLEASE CHOOSE YOUR SERVICE:
=> PRESS 1 TO KNOW YOUR CURRENT BALANCE:
=> PRESS 2 TO WITHDRAW AMOUNT
=> PRESS 3 TO DEPOSIT AMOUNT
=> PRESS 4 TO END THIS SESSION ''')))
if options == 1:
print(f" YOUR CURRENT BALANCE IS: {balance}")
elif options == 2:
print("ENTER WITHDRAW AMOUNT: ")
withdraw = int(input())
balance = balance - withdraw
print(
f" AMOUNT WITHDRAW PROCESS SUCCESSFULLY COMPLETED. YOUR CURRRENT BALANCE IS;{balance},KINDLY COUNT THE AMOUNT OF CASH AND DO NOT FORGET TO TAKE BALANCE RECEIPT")
if options == 3:
print(" ENTER AMOUNT YOU WANT TO DEPOSIT: ")
deposit = int(input())
balance = amount = balance + deposit
print(f" AMOUNT DEPOSITING PROCESS SUCCESSFULLY COMPLETED. YOUR CURRRENT BALANCE IS;{balance}")
if options == 4:
print(" THANK YOU FOR USING OUR SERVICE")
break
elif pin != pin1:
print(" PIN DOES NOT MATCH WITH THE ASSOCIATED ACCOUNT")