contestada

30 points) modify the given code so that each transaction has a transaction fee deducted from the owner's balance once it's being added to the blockchain. the fee must be the number of nytps closest to the 2% of transaction's total output. after this change, run the program for each of the three scenarios specified in part 1 and report the output and compare it with what you observed in part 1.