The following are the answers to the questions presented:
f(x) is defined on [0,4]
f(x) is continuous on (0,4)
f(0) = f(4)= 3
c= 2
I am hoping that these answers have satisfied your queries and it will be able to help you in your endeavors, and if you would like, feel free to ask another question.