EXERCISE: Find the average energy plan

Find the average cost of energy plans

Write a function that takes the yearly cost of energy plans from several providers

The function should return the average of cost of those energy plans.

()
Reveal answer...

Hint

The functions reduce and count should help you solve this challenge

Using a vector of numbers to represent the energy plan costs is probably the simplest approach

results matching ""

    No results matching ""