IP HOLIDY
HOMEWORK
REAL TIME SINERIO
ATM PROJECT USING
PYTHON LANGUAGE
ATM PROGRAM
IP
print("ACCOUNT NUMBER IS;20232023")
ACNO=20232023
name="POONNESWAR"
date=input("Enter the date:")
acno=int(input("Enter ur account number:"))
if acno==ACNO:
pin=int(input("Enter ur pin:"))
ACB=10000
if acno==pin:
print("1.WITHDRAWL")
print("2.FAST CASH")
print("3.MINISTATEMENT")
print("4.BALANCE ENQUIRY")
print("5.DEPOSIT")
print("6.CANCEL")
op1=int(input("ENTER ANY OPTION FROM ABOVE:"))
if op1==1:
wd=int(input("Enter the amount:"))
if wd<=ACB:
ACB=ACB-wd
print("COLLECT U R CASH",wd)
else:
print("U ENTRED MORE THAN U R BALENCE")
while op1==2:
print("1. 500")
print("2. 1000")
print("3. 1500")
print("4. 2000")
print("5. 5000")
print("6. 10000")
fc=int(input("Enter the amount with above option:"))
if fc==1:
ACB-=500
print("COLLECT U R CASH 500 RUPEES")
print(" UR BALANCE :",ACB)
print("THANK U FOR VISITING OUR ATM")
break
elif fc==2:
ACB-=1000
print("COLLECT U R CASH 1000 RUPEES")
print(" UR BALANCE :",ACB)
print("THANK U FOR VISITING OUR ATM")
break
elif fc==3:
ACB-=1500
print("COLLECT U R CASH 1500 RUPEES")
print(" UR BALANCE :",ACB)
print("THANK U FOR VISITING OUR ATM")
break
elif fc==4:
ACB-=2000
print("COLLECT U R CASH 2000 RUPEES")
print(" UR BALANCE :",ACB)
print("THANK U FOR VISITING OUR ATM")
break
elif fc==5:
ACB-=5000
print("COLLECT U R CASH 5000 RUPEES")
print(" UR BALANCE :",ACB)
print("THANK U FOR VISITING OUR ATM")
break
elif fc==6:
ACB-=10000
print("COLLECT U R CASH 10000 RUPEES")
print(" UR BALANCE :",ACB)
print("THANK U FOR VISITING OUR ATM")
break
else:
print("U ENTERED WRONG OPTION")
if op1==3:
print("|---------------------------BOP--------------------------|")
print("|------SECNBAD----RRY-----GC-----CRPF------|")
print("|-----------------------------------------------------------|")
print("|NAME=",name,"ACNO=",ACNO," |")
print("|-----------------------------------------------------------|")
print("|Balance:",ACB,"Date:",date,"-----------------|")
if op1==4:
print(name,"U R ACCOUNT BALANCE IS:",ACB)
if op1==5:
print("-----------DEPOSIT -------------")
print(" U R BALANCE IS",ACB)
print("---------------------------------------")
dp=int(input("Please enter the amount to deposit:"))
ACB=ACB+dp
print("U R TOTAL BALANCE IS :",ACB)
if op1==6:
print("U R TRANSACTION IS CANCLED")
else:
print("NO FOLLOWING ACCOUNT FOUND")
input()
outputs
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37)
[MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more
information.
= RESTART: C:\Users\91944\Desktop\ATM.py
ACCOUNT NUMBER IS;20232023
Enter the date:10/10/2023
Enter ur account number:20232023
Enter ur pin:20232023
1.WITHDRAWL
2.FAST CASH
3.MINISTATEMENT
4.BALANCE ENQUIRY
5.DEPOSIT
6.CANCEL
ENTER ANY OPTION FROM ABOVE:1
Enter the amount:10000
COLLECT U R CASH 10000
Second output
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37)
[MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more
information.
= RESTART: C:\Users\91944\Desktop\ATM.py
ACCOUNT NUMBER IS;20232023
Enter the date:1/10/2022
Enter ur account number:20232023
Enter ur pin:20232023
1.WITHDRAWL
2.FAST CASH
3.MINISTATEMENT
4.BALANCE ENQUIRY
5.DEPOSIT
6.CANCEL
ENTER ANY OPTION FROM ABOVE:2
1. 500
2. 1000
3. 1500
4. 2000
5. 5000
6. 10000
Enter the amount with above option:5
COLLECT U R CASH 5000 RUPEES
UR BALANCE : 5000
THANK U FOR VISITING OUR ATM
Third output
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023,
05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for
more information.
= RESTART: C:\Users\91944\Desktop\ATM.py
ACCOUNT NUMBER IS;20232023
Enter the date:10/12/2021
Enter ur account number:20232023
Enter ur pin:20232023
1.WITHDRAWL
2.FAST CASH
3.MINISTATEMENT
4.BALANCE ENQUIRY
5.DEPOSIT
6.CANCEL
ENTER ANY OPTION FROM ABOVE:3
|---------------------------BOP--------------------------|
|------SECNBAD----RRY-----GC-----CRPF------|
|-----------------------------------------------------------|
|NAME= POONNESWAR ACNO= 20232023 |
|-----------------------------------------------------------|
|Balance: 10000 Date: 10/12/2021 -----------------|
Fourth output
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023,
05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for
more information.
= RESTART: C:\Users\91944\Desktop\ATM.py
ACCOUNT NUMBER IS;20232023
Enter the date:14/12/2022
Enter ur account number:20232023
Enter ur pin:20232023
1.WITHDRAWL
2.FAST CASH
3.MINISTATEMENT
4.BALANCE ENQUIRY
5.DEPOSIT
6.CANCEL
ENTER ANY OPTION FROM ABOVE:4
POONNESWAR U R ACCOUNT BALANCE IS: 10000
Fifth output
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023,
05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()"
for more information.
= RESTART: C:\Users\91944\Desktop\ATM.py
ACCOUNT NUMBER IS;20232023
Enter the date:07/11/2007
Enter ur account number:20232023
Enter ur pin:20232023
1.WITHDRAWL
2.FAST CASH
3.MINISTATEMENT
4.BALANCE ENQUIRY
5.DEPOSIT
6.CANCEL
ENTER ANY OPTION FROM ABOVE:5
-----------DEPOSIT -------------
U R BALANCE IS 10000
---------------------------------------
Please enter the amount to deposit:100000
U R TOTAL BALANCE IS : 110000
Sixth output
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023,
05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for
more information.
= RESTART: C:\Users\91944\Desktop\ATM.py
ACCOUNT NUMBER IS;20232023
Enter the date:11/11/2011
Enter ur account number:2023
NO FOLLOWING ACCOUNT FOUND
Seventh output
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023,
05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for
more information.
= RESTART: C:\Users\91944\Desktop\ATM.py
ACCOUNT NUMBER IS;20232023
Enter the date:1/12/2023
Enter ur account number:20232023
Enter ur pin:20232023
1.WITHDRAWL
2.FAST CASH
3.MINISTATEMENT
4.BALANCE ENQUIRY
5.DEPOSIT
6.CANCEL
ENTER ANY OPTION FROM ABOVE:6
U R TRANSACTION IS CANCLED