Transactions
Given a string of CSV data containing a list of transactions:
Define a new
Transactiontype and parse the CSV data into an array ofTransactionPrint the name of each unique
currencyin the data set (e.g."ETH, BTC")For each currency, print the
currencyandvalueof the transaction with the largest positive value for that currency (e.g."ETH: 0.519, BTC: 1.137")
This exercise covers materials from the sections: types, syntax, standard library, functions.