Banking system application with CPP
- Allow creating a bank account for a specific client
- There are two types of this banking accounts (Basic and Saving)
- Each one of these two types has a different implementation of the withdraw and deposit function
- There is a Client class that contains all client information
- The main class that runs the application and stores all clients with their ID to access them
- All client information will be stored in the database file (dataBase.txt) and will be uploaded each time the application runs
- Basic bank account
- Contains account ID.
- Contains account balance.
- Has two different constructors:
- The first sets the balance to 0.
- The second the balance to a given value without any constrains.
- Withdow money from this bank type as you want within the range of the account balance.
- Deposit money to this bank type with any amount of money.
- Saving bank account
- It extends the basic bank account attributes and methods.
- This account requires the user to keep a minimum amount of money in the account, which is called the minimum balance, as long as the account is open.
- This minimum balance takes a default value of 1000 L.E.
- It also requires him to make deposits that are not less than 100 a time.
- The constructor sets the balance to a given value that should be greater than or equal to the minimum balance amount.
- It contains the information of a client
- His name.
- His address
- His phone number
- His bank account type
- A pointer that refers to his bank account
There are many options in the main widnow
- Create a new account
- List all clients
- showing all their information (name, address, phone number ...)
- Withdraw money
- Deposit money