Question: Create a program using python that models a basic banking system/process. The program will allow users to perform basic banking operations: login to an account

Create a program using python that models a basic banking system/process. The program will allow users to perform basic banking operations: login to an account using a 4-digit PIN, view account information, deposit funds, and withdraw funds. The user should be allowed to make as many deposits and withdraws as possible. When performing withdraw, the operation should only be allowed if the account balance is greater than or equal to the withdraw amount. As the user is interacting with the program, the program should display transaction details (account balance prior to current transaction, transaction amount, and updated balance).

Your program will proceed as follows:

When the program begins, it will load accounts data for multiple bank accounts from a file

Once the accounts are loaded, the user will be prompted to enter a 4-digit PIN that corresponds to an account PIN. Invalid PIN should cause the program to display an error and re-prompt the user for a valid PIN. If a valid PIN is not entered after three tries, the program should exit. Only one account and be access at a time, but the user can work on many accounts sequentially

Once the user enters a valid PIN, the program should locate the account that corresponds to the PIN and display the account information (Account holders first and last name, account number, and type of account: Savings)

The user should then be prompted to select an option:

Option 1 to view account balance

Option 2 to make a deposit

Option 3 withdraw funds

Option 4 to return to the main menu (#2: Prompt for a new PIN)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!