Banking Application for Single User

August - December 2023

PROJECTS

11/9/20242 min read

I teamed up with a classmate to create a banking system in Python as part of the final project for our Computer Programming class. This coding project allows a user to manage their account.

Inside a loop, the program will continuously display a menu with the following account options until the user decides to exit/logout of the program:

Select a service:

1. Login to Account

2. Deposit to Account

3. Withdraw from Account

4. Print Balance

5. Change Password

6. Exit/Logout

1. This option prompts for and read in the user ID and password as a string for each of these values. Then, these values are compared with the values stored in the account. We used a “dictionary” as the data structure of choice to store the account information. The password will be encrypted using the Caesar Cipher method. If the user ID and password match, the user will be authenticated, an appropriate “logged in” status message will be displayed, and now will be access to the functionalities provided by the other options. If the values do not match, the user will not be authenticated.

2. This option will prompt the user to input a deposit amount as a floating-point number and will deposit that amount into the account. If the user has not been authenticated, the transaction will not be performed.

3. This option will prompt the user to input a withdrawal amount as a floating-point number and will withdraw that amount from the account. If the user has not been authenticated, the transaction will not be performed.

4. This option simply prints out the current balance for the user’s account. If the user has not been authenticated, the transaction will not be performed.

5. This option will first prompt for and read in the current password associated with the user’s account. If the password matches, the user will be prompted to input the new password as a string that will be encrypted and overwrite the current password in the account. If the user has not been authenticated, the transaction will not be performed.

6. This option prints out an appropriate message that the user has logged out of their account, then exits the loop/program.

9. This is a hidden option that is not displayed in the menu, but prints out the account information in the dictionary whether the user is logged in or not.

This coding project was to introduce students to programming, therefore was easy and simple to complete.