Question: Below is a list of names in Numpy format. That are the bank accounts. In the cell below create a ( 1 0 , 2

Below is a list of names in Numpy format. That are the bank accounts. In the cell below create a (10,26) matrix of random integers called transactions. The (10) rows represents tranactions and the (26) columns coorespond to each bank account.
Make sure each transaction is between -50 and 100.'Alice', 'Benjamin', 'Charlotte', 'David', 'Emma', 'Felix', 'Grace', 'Henry','Isabella', 'Jack', 'Katherine', 'Liam', 'Mia', 'Noah', 'Olivia', 'Penelope','Quinn', 'Rebecca', 'Samuel', 'Taylor', 'Ulysses', 'Victoria', 'William''Xander', 'Yasmine', 'Zachary'])Now create a function currentValue that takes an transaction (integer 0 to 10) and a bank account one row of the transactions array above (i.e., a 1\times 10 numpy array) and returns the bank account value after that transaction.I.e., assume each transaction represents a flow in or out of the account, where all accounts start at 0. Thus the value after n transactions will be the total of the first n transactions.
Now create a function aboveThreshold that takes an transaction (integer 0 to 9) and a threshoold (any integer) and returns the array of accounts who have that amount of money after the given transaction.
Calculate a rough approx of the distribution after the n? th transaction: create an list with 20 values, representing the number of accounts with more than -100,-175,-150dots475,500. Store this in a dict, with the key as the threshold and the value as the number of accounts exceeding it
Below is a list of names in Numpy format. That

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!