Define the function s on [−2,2π] by
s(x)=⎩⎨⎧ex,k,cosx,−2≤x<0,x=0,0<x≤2π,
where k is a real constant. Answer the following questions.
a. Part 1: (a) Find the value of k that makes s continuous at x=0. Show your reasoning.
b. Part 2: (b) For the value of k you found in part (a), calculate the average value of s on the interval [−2,2π].
c. Part 3: (c) Determine all numbers c in [−2,2π] such that s(c) equals the average value computed in part (b). Justify your answer algebraically.
d. Part 4: (d) Discuss whether the average value of s on [−2,2π] would exist if k were not chosen as in part (a). Support your conclusion.