Transactions
Given a string of CSV data containing a list of transactions:
Define a new
Transaction
type and parse the CSV data into an array ofTransaction
Print the name of each unique
currency
in the data set (e.g."ETH, BTC"
)For each currency, print the
currency
andvalue
of 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.