C#Basic checks: sign, zero, empty, nullDifficulty 1/3
public class FeeReport
{
public decimal AverageFee(IList<Transaction> transactions)
{
decimal total = 0;
foreach (var t in transactions)
{
total += t.Fee;
}
return total / transactions.Count;
}
}