ATM Withdrawal System (Banking Security)
Business Scenario
You are hired as a Software Developer Intern at a leading bank. The bank is developing a secure ATM machine system that allows customers to withdraw money safely.
Due to increasing fraud cases, the bank wants a system that:
Verifies the customer PIN's
Checks if the account has sufficient balance
Ensures secure and accurate transactions
Your task is to build a basic ATM withdrawal system using decision-making (if-else conditions) similar to real banking machines.
Pre-Lab Preparation
Topic : Python Fundamentals for Cybersecurity
1)Introduction to Python for Cybersecurity.
2)Python basics(Variable, Datatypes, Operators, Conditional statements, loops, function)
Practical Code
correct_pin = 1234
balance = 5000
pin = int(input("Enter your PIN: "))
amount = float(input("Enter withdrawal amount: "))
if pin == correct_pin:
if amount <= balance:
print("Transaction Successful")
print("Remaining Balance:", balance - amount)
else:
print("Insufficient Balance")
else:
print("Incorrect PIN")
Output
Great job!
You have successfully completed your lab on ATM Withdrawal System using Decision-Making Statements.
In this lab, you have: understood how ATM systems verify customer PINs, learned the importance of balance validation in banking applications, performed secure transaction checks using if-else conditions, explored decision-making logic in real-time banking systems, and built a basic ATM withdrawal system for secure and accurate transactions.
Checkpoint
Next-Lab Preparation
Topic : Python Fundamentals for Cybersecurity
1)Introduction to Python for Cybersecurity.
2)Python basics(Variable, Datatypes, Operators, Conditional statements, loops, function)