Welcome to the Bank System, a simple console-based application that simulates basic banking operations. This C# program allows you to perform various banking tasks, such as adding accounts, depositing money, withdrawing funds, transferring between accounts, and viewing transaction history.
Ensure you have a C# compiler installed on your system. Compile the code using your preferred C# compiler.
The program presents a menu with the following options:
- Add new account
- Withdraw
- Deposit
- Print account details
- Transfer between two accounts
- Print numbered transaction history
- Quit
Choose an option by entering the corresponding number. Follow the prompts to perform the selected operation.
Enter the account name and starting balance when prompted.
Choose the respective options and enter the amount to deposit or withdraw.
Select the transfer option and follow the instructions to transfer funds between two accounts.
Choose the print option and enter the account name to view its details.
Option 6 displays a numbered transaction history. You can choose to rollback a specific transaction by entering its number.
Choose option 7 to quit the program.
The program includes basic exception handling to handle errors gracefully. If an error occurs during an operation, an error message will be displayed.