Simple Circuit Power Calculation Table Problem

This is the same problem as the circuit table problem. We will change the solution code to use some functions to do the work.

Answer

Here is one solution to this problem. There are others. The output from this is the same as the other version.