Book Report
Book Report
CLASS - XII
CBSE
NAME :
................................................................................
REG NO. :
................................................................................
BONAFIDE CERTIFICATE
Principal Teacher – In
charge
SCHOOL SEAL
1
I, ………………………………………………………………..of Std XII ,
express my gratitude to our Principal, Dr.J.Sundar for his
continuoussupport and encouragement.
2
Computer Science Project
ATM Management
System
Done By:-
3
Index
4
Synopsis
The ATM Management System in Python is designed to
facilitate efficient and secure management of Automated
Teller Machines (ATMs). This program aims to provide a
user-friendly interface for both customers and
administrators, ensuring smooth transactions and
effective management of the ATM network.
Key Features:
1. **User Authentication:**
2. **Account Management:**
5
3. **Transaction Processing:**
4. **Admin Controls:**
5. **Security Measures:**
6
6. **Transaction Logs:**
7. **Error Handling:**
8. **User Interface:**
9. Database Integration:
7
10. Code Documentation and Comments:
Software Used
Python is an interpreted, object-oriented, high-level
programming language with dynamic semantics. Its
high-level built in data structures, combined with
dynamic typing and dynamic binding, make it very
attractive for Rapid Application Development, as well as
for use as a scripting or glue language to connect
existing components together. The Python interpreter
and the extensive standard library are available in
source or binary form without charge for all major
platforms and can be freely distributed.
8
MySQL is popular among all databases, and is ranked
as the 2nd most popular database, only slightly trailing
Oracle Database. Among open source databases,
MySQL is the most popular database in use today.
MySQL uses standalone clients that allow users to
interact with MySQL, and also to use it with other
programs for applications that need relational database
capabilities. MySQL's reputation for reliability has led to
its inclusion in the popular LAMP stack (Linux, Apache,
MySQL, Python/Perl/PHP) and is also used as the
default DBMS in popular CMS options like Drupal,
Joomla, phpBB, and WordPress.
Algorithm
1. **User Authentication:**
- Procedure:
9
2. Verify entered credentials against the user
database.
2. **Account Management:**
- Procedure:
10
3. **Transaction Processing:**
- Procedure:
4. **Admin Controls:**
- Procedure:
11
1. Allow administrators to log in with separate
credentials.
5. **Security Measures:**
- Procedure:
6. **Transaction Logs:**
- Procedure:
12
1. Record transaction details (timestamp, type,
amount) in logs.
7. **Error Handling:**
- Procedure:
8. **User Interface:**
- Procedure:
13
3. Use formatting for readability.
9. **Database Integration:**
- Procedure:
- Procedure:
14
Source Code
class ATM:
2 def __init__(self):
3 self.balance = 1000
4 self.menu = """
5 1. Check Balance
6 2. Withdraw Cash
7 3. Deposit Cash
8 4. Exit
9 """
10
11 def check_balance(self):
13
14 def withdraw_cash(self):
15
15 amount = int(input("Enter the amount to withdraw:
"))
17 print("Insufficient funds!")
18 else:
19 self.balance -= amount
21
22 def deposit_cash(self):
24 self.balance += amount
26
27 def display_menu(self):
28 print(self.menu)
30 while option != 4:
16
31 if option == 1:
32 self.check_balance()
33 elif option == 2:
34 self.withdraw_cash()
35 elif option == 3:
36 self.deposit_cash()
37 else:
38 print("Invalid option!")
39
40 print(self.menu)
42
43
45 atm = ATM()
46 atm.display_menu()
17
Output
1. Check Balance
2. Withdraw Cash
3. Deposit Cash
4. Exit
Choose an option: 1
1. Check Balance
2. Withdraw Cash
3. Deposit Cash
4. Exit
Choose an option: 2
18
1. Check Balance
2. Withdraw Cash
3. Deposit Cash
4. Exit
Choose an option: 3
1. Check Balance
2. Withdraw Cash
3. Deposit Cash
4. Exit
Choose an option: 4
19
Bibliography
1)Google.com
2)Blackbox.ai
3)Cbsepyhton.in
4)chat.openai.com
20