A marathon runner will donate $5000 to charity if her time is less than or equal to 3 hours. She will donate $2000 if her time is more than 3 hours but less than or equal to 4 hours. Finally, she will donate $1000 to charity if her time is more than 4 hours.
a.)Write a piecewise function describing this situation.