Snow falls intermittently accumulating on the ground at a rate (inches/hour) given by the equation where t is the number of hours that storm is overhead. To the nearest inch, how much snow will accumulate in the first two hours of the storm?

Do I just plug in 2 hours into the equation to get 6.46 in? It seems to simple to work like that though.

The temperature of a city for the 24 hour period starting at 12 noon is given by equation where t is the number of hours after 12 noon. Find the average temperature of the city to the nearest integer from 12 noon until 6 am the next morning.

So is t = 18? and I just use the formula ?