You are on page 1of 28
INDEX S.NO. CONTENT 4. INTRODUCTION ~—> ie i. About Python ii,About BANKING MANAGEMENT | SYSTEM iii.The Menu Driven 2. |FUNCTION USED * BUILT IN FUCTION 3. |SOURCE CODE |4. |OUTPUT es BIBLIOGRAPHY INTRODUCTION ABOUT PYTHON:- 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. Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. 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. Often, programmers fall in love with Python because of the increased productivity it provides. Since there is no compilation step, the edit-test-debug cycle is incredibly fast. Debugging Python programs is easy: a bug or bad input will never cause a segmentation fault. Instead, when the _ interpreter discovers an error, it raises an exception. When the program doesn't catch the exception, the interpreter prints a stack trace. A source level debugger allows inspection of local and global variables, evaluation of arbitrary expressions, setting breakpoints, stepping through the code a line at a time, and so on. The debugger is written in Python itself, testifying to Python's introspective power. On the other hand, often the quickest way to debug a program is to add a few print statements to the source: the fast edit-test-debug cycle makes this simple approach very effective. ABOUT BANKING MANAGEMENT SYSTEM:- Bank Management System is based on dot NET and is a major Project from students. It is used to keep the records of clients, employee etc in Bank. The bank Management system is an application for maintaining a person C/S account in a bank. The system provides the access to the customer to create an account, deposit/withdraw the cash from his account, also to view reports of all accounts present. The following presentation provides the specification for the system. The Menu Driven:- >NEW ACCOUNT () The Bank can user this option to add new entries. So that customer can new account to store money and follow further transactions. > WITHDRAW ( ) The Bank use this to withdraw a specific amount from customer account. So this option shows them the previous amount and total amount after the withdraw. »>DEPOSIT () The Bank use this in order to add a specific amount in his/her bank account. So this option shows them the previous amount and the final amount after deposit. >DISPLAY ( ) The Bank use this in order to see the detail of the customer account. FUNCTION USED > BUILT IN FUNTION:- i. if/else statement:- The if-else statement is used to execute both the true part and the false part of a given condition. If the condition is true, the if block code is executed and if the condition is false, the else block code is executed. ¢ (elif is short for "else if" and is used when the first if statement isn't true, but you want to check for another condition.) COVCCC CCS CC Cee ii. for/while statement:- A while loop will run a piece of code while a condition is True whereas A for loop is used for iterating over a sequence. (that is either a list, a tuple, a dictionary, a set, or a string). ULULI Ct ttt _ pe +n... Saat Working Le Of | Softwar NamesOFClients = [‘Jomhel Dulla’, ‘Benny Salde', ‘Jeremy Eriman’, ‘Given Bariacto’, 'Carlan Pelobello’, ‘Ryan Manaay’, 'Daniel Bandiola'] ClientPins = ['0001', '0002', '0003', '0004', '0005', '0006', '0007'] ClientBalances = [10000, 20000, 30000, 40000, 50000, 60000, 70000} ClientDeposition = 0 ClientWithdrawal = 0 ClientBalance = 0 disk1 = 1 u=0 while True: # os.system("cls") print (abn EEE HEr Er aH oor reba rrnaaonaralarnolara id FOIA II TIAA) ee ———————— SSN NamesOFClients = [‘Jomhel Dulla’, 'Benny Salde’, ‘Jeremy Eriman', ‘Given Bariacto’, 'Carlan Pelobello', ‘Ryan Manaay', ‘Daniel Bandiola'] ClientPins = ['0001', 0002", '0003', '0004', '0005', '0006', '0007'] ClientBalances = [10000, 20000, 30000, 40000, 50000, 60000, 70000] - ClientDeposition = 0 ClientWithdrawal = 0 ClientBalance = 0 diskI = 1 disk2 = 7 u=0 while True: # os.system("cls") THESE OEIC IIS URES COSI IRA OIE IC ER AAI TAIRA EIA print( JIA TIO AI IAN) print(" == WELCOME TO SACRED HEART JANTA BANKING SYSTEM TInt (MAAR BBG OC HOO oOo OBES ES ORE EIR: IORI RE eR eK) (a). Open New Client Account (b). The Client Withdraw a Money x +t PITT (MAOH HAH O OOS AO REE EE Iio Iii I I a ii Ear Jer ae ooitctttn EnterLetter = input("Select a Letter from the Above Box menu : ") if EnterLetter == "a": print(" Letter a is Selected by the Client") NumberOfClient = eval(input("Number of Clients : ")) u=u+ NumberOfClient ifu>7: print("\n") print("Client registration exceed reached or Client registration too low") u=u- NumberOfClient else: while disk] <= u: name = input("Write Your Fullname : ") NamesOFClients.append(name) 8 ClientPins.append(pin) ClientBalance = 0 ClientDeposition = eval(input("Please Insert a Money to Deposit to Start an Account : ")) ClientBalance = ClientBalance + ClientDeposition ClientBalances.append(ClientBalance) print("\nName=", end="") print(NamesOFClients[disk2]) print("Pin=", end="") print(ClientPins[disk2]) print("Balance=", "P", end="") print(ClientBalances[disk2], end="") disk1 = disk1 + 1 disk2 = disk2 + 1 print("Your pin is added to Client Table") print("Your balance is added to Client Table") print("----New Client account created successfully !----") print("\n") print("Your Name is Available on the Client list now : ") print(NamesOFClients) print("\n") print("Note! Please remember the Name and Pin") mainMenu = input(" Press Enter Key to go Back to Main Menu to Conduct Another Transaction or Quit_") elif EnterLetter == "b"; v=0 while v < 1: w=-l name = input("Please Insert a name : ") pin = input("Please Insert a pin: ") while w < len(NamesOFClients) - 1: w=wtl if name == NamesOFClients[w]: if pin == ClientPins[w]: v=vtl print("Your Current Balance:", "P", end="") print(ClientBalances[w], end="") print("\n") ClientBalance = (ClientBalances[w]) ClientWithdrawal = eval(input("Insert value to Withdraw : ")) deposition eval(input( "Please Deposit a higher Value because your Balance mentioned above is not enough : nD) ClientBalance = ClientBalance + deposition print("Your Current Balance:", "Pp", end="") print(ClientBalance, end="") ClientBalance = ClientBalance - ClientWithdrawal print("-\n") print("----Withdraw Successfully!----") ClientBalances[w] = ClientBalance print(""Your New Balance: ", "P", ClientBalance, end="") print("\n\n") else: ClientBalance = ClientBalance - ClientWithdrawal 12 Print(""----Withdraw Successfully!----") ClientBalances[w] = ClientBalance print("Your New Balance: ", "P", ClientBalance, end="") print("\n") ifv<1: print("Your name and pin does not match!\n") break mainMenu = input(" Press Enter Key to go Back to Main Menu to Conduct Another Transaction or Quit_") elif EnterLetter == "c": print("Letter c is selected by the Client") x=0 while x < 1: 3 famed + ie MERI AS UA name = input("Please Insert a name : oy pin = input("Please Insert a pin: ") while w < len(NamesOFClients) - 1: w=wtl if name == NamesOFClients[w]: x=xt1 print("Y our Current Balance: ", "P", end="") print(ClientBalances[w], end=" a) ClientBalance = (ClientBalances[w]) print("\n") ClientDeposition = eval(input(" Enter the value you want to deposit : ")) ClientBalance = ClientBalance + ClientDeposition ClientBalances[w] = ClientBalance print("\n") Print(" Your New Balance: ” + "P", ClientBalance, print("\n") ifx<] print("Your name and pin does not match!\n") break mainMenu = input(" Press Enter Key to go Back to Main Menu to Conduct Another Transaction or Quit_") elif EnterLetter == "d": print("Letter d is selected by the Client") w=0 print("Client name list and balances mentioned below : ") print("\n") while w <= len(NamesOFClients) - 1: print("->.Customer =", NamesOFClients[w]) 15 print("\n") w=wtl mainMenu = input(" Press Enter Key to go Back to Main Menu to Conduct Another Transaction or Quit_") Won. elif EnterLetter == "e": print("letter e is selected by the client") print("Thank you for using our banking system!") print("\n") print("Thank You and Come again") print("God Bless") break else: print("Invalid option selected by the Client") print("Please Try again!") » . mainMenu = jr e NPUL(" Pre; PUl("Pr 8s Enter Key to go Back to Main M' jack to Main Menu to Conduct Another 1 fansaction or ¢ ‘Action or Quit ") or TL A REELS = ty Ehethehendl eth) ee ee — TABLE: BANK Bank je No.| CName | BName | DateOfOpen | Amount | Transaction FT Karan | Bankof | 12/01/98 15000 i 10 Baroda 2 Puneet | State 01/02/97 2500 09 bank of india 3 | Aniban | Oriental | 15/07/99 17000 Zs Bank Yatin | Standard} 1/02/99 38000 Tiel Bank | Sunny | State 06/02/99 47000 pS eetel Bank of india Jayant | UCO 1/08/98 34000 07 BANK Nikhil | BANK 02/1/99 56000 | OF BARODA | Tarun | Oriental | 04/4/99 22000 TOBE! |

You might also like