Block:
1.
a. I walk at a rate of 2 miles per hour. Write a function which uses time as its
input, and how far I've walked as its output.
b. I burn 110 calories per 1 mile that I walk. Write a function (pro-tip: a linear
function) which
uses
miles
as its input
and calories burned as its output.
c. Using the two function definitions you just wrote, write a composite function
which
uses
time
as its input, and
calories burned as its output. Simplify it as
much as you can.
d. Use this function you just wrote to find how many calories I burn in 3 hours of
walking.
1.
a. I walk at a rate of 2 miles per hour. Write a function which uses time as its
input, and how far I've walked as its output.
b. I burn 110 calories per 1 mile that I walk. Write a function (pro-tip: a linear
function) which
uses
miles
as its input
and calories burned as its output.
c. Using the two function definitions you just wrote, write a composite function
which
uses
time
as its input, and
calories burned as its output. Simplify it as
much as you can.
d. Use this function you just wrote to find how many calories I burn in 3 hours of
walking.