Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What would be an ideal answer in Python ? 1. Account Transaction Buffer Bailey Bank is a national bank that offers a wide array of
What would be an ideal answer in Python?
1. Account Transaction Buffer Bailey Bank is a national bank that offers a wide array of financial products. Their newest product, Individual Deposit Account is a program that will constantly receive requests for customers to move money in and out of their accounts. As the new technical lead, you have been tasked with implementing this program. Your program will receive inputs for three types of transactions: deposits, withdrawals, and transfers from one account to another. These inputs will come in a constant stream that needs to be processed in batches. In each batch, your program needs to output all account balance changes that have taken place in that batch. Your program will be given the batch size that it needs to use to batch inputs. In addition to computing account balances, your program also needs to flag accounts that are engaging in suspicious activities. An account should be flagged as suspicious if it is participating in a high number of transfers over a short period of time, as either the sender or recipient. Your program will be given a transfer limit and a fraud window size. It should flag an account if it hits or exceeds the transfer limit over any set of consecutive transactions matching the fraud window size. For example, if transfer_limit = 3 and fraud_window_size= 10, your program should flag an account if it is involved in 3 or more transfers in the past 10 consecutive transactions. In each batch, after printing out account balances, your program should print out any newly detected suspicious accounts. An account should only be flagged as suspicious once throughout the duration of your program, even if it continues to engage in suspicious transfers after it has been flagged. Input (stdin) Your program should read from standard input. The first three lines are numerical values indicating the aforementioned batch size, transfer limit, and fraud window size in order. The rest is a comma-delimited list of transactions. You can assume the input is valid. Each transaction type is structured in the following format: deposit: deposit,Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started