Suggestion: First answer part (a) using techniques from class and/or the text. Then, notice that parts (b)-(e) are modifications of part (a). Think about how these modifications affect the problem. Then solve parts (b)-(e) based on your answer to part (a). If you are not able to see the connections, you can always work the entire method.
(a)
Answer:
(b)
(c)
(d)
(e)
You can earn partial credit on this problem.