RUN ONLY IN PYTHON 2 PLEASE !!!!
CS90Mode DESCRIPTION Use Module: Hwl homework to do this homework. You are going to build new features to this simple banking program. All the additional features that I am asking are in Bold. Please note that program that are written without functions will loose 25% of the grade. Write a program to display the menu with the following options and ask for the user input. Type P to populate accounts Type to search for account. Type D to deposit Amount Type W to withdraw Amount Type E to ext. . If the user types P. Populate all the three arrays. And display the menu again If the user types D then Ask the user for the account number Search the accountnumbers array for that account number and find its position Ask the user for the amount to be deposited Add the deposit amount to the balance for that account. If the user types W then Ask the user for the account number Search the accountnumbers) array for that account number and find its position - Ask the user for the amount to be withdrawn. Subtract withdrawal amount from the balance for that account only if there is enough balance Otherwise display the message "ERROR: Not enough balance If the user types Sthen Ask the user for the account number - Search the array for that account number and in its position Display the Name and balance at the position found during the above search . If the user types E then Terminate the programater displaying the message Thank you for using the program bye Peace see the sample test case scenario forect message the user types any other option Display the message invalid Choice try again and go back and display the menu MacBook Air DOBILA Direct Login to Mime from Canvas For exact input and output messages, please refer to the test case scenarlo below: Test Scenario: **** MENU OPTIONS Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: 'P Please enter a name: 'John' Please enter an account number: 1 Please enter a balance: 100 Please enter a name: 'Susan Please enter an account number: 2 Please enter a balance: 200 Please enter a name: 'Maria Please enter an account number: 3 Please enter a balance: 300 Please enter a name: 'Sammy Please enter an account number: 4 Please enter a balance: 400 Please enter a name: "Ravi Please enter an account number: 5 Please enter a balance: 500 **** MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: 'S Please enter the account number to search: 1 Name is: John and the balance is: 100 **** MENU OPTIONS **** Type P to populate accounts Type S to search for account COOP **** MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: 'D' Please enter the account number to add deposit: 1 Please enter the amount to be deposited: 100 **** MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: 'S' Please enter the account number to search: 1 Name is: John and the balance is: 200 **** MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: 'W" Please enter the account number to withdraw: 1 Please enter the amount to be withdraw: 50 **** MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: "S Please enter the account number to search: 1 Name is: John and the balance is: 150 **** MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount P UUDULIL Type E to exit Please enter your choice: 'W Please enter the account number to withdraw: 1 Please enter the amount to be withdraw: 200 ERROR: Not enough balance **** MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: 'S Please enter the account number to search: 1 Name is: John and the balance is: 150 **** MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: 'D' Please enter the account number to add deposit: 5 Please enter the amount to be deposited: 500 **** MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: 'S' Please enter the account number to search: 5 Name is: Ravi and the balance is: 1000 ***MENU OPTIONS **** Type P to populate accounts Type S to search for account Type D to deposit Amount Type W to withdraw Amount Type E to exit Please enter your choice: 'A Invalid choice. Please try again NULLO