Question: Initially, the banking system does not contain any accounts, so Implement operations to allow account creation, deposits, and transfers between 2 different accounts. README create

Initially, the banking system does not contain any accounts, so Implement operations to allow account creation, deposits, and transfers between 2 different accounts.
README
create account(self, timestamp: int, account id: str)-> bool should create a new account with the given identiler if it doesn't already exist, Returns true if the account was successfully created or False if an account with account id already exists.
deposit (self, timestamp: int, account id: str, amount: int) int | None should deposit the given amount of money to the specified account account id. Returns the balance of
the account after the operation has been processed. If the specified account doesn't exist, should return None
SETTINGS
transfer(self, timestamp: int, source account_id: str, target account id: str. amount: int) int | None should transfer the given amount of money from account source account id to account target account id. Returns the balance of source account id if the transfer was successful of None otherwise.
Returns None if source account id of target account_id doesn't exist.
Returns None if source account id and target account id are the same.
Retums None if account source account id has insufficient funds to perform the transfer.

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 Programming Questions!