How to write a program that accepts user input as variable X and calculates the value of f(x). There are 3 functions f(x), and one of them is t be called based on the value of X:
if condition 1 is met, use f1(x);
if condition 2 is met, use f2(x);
else use f3(x).
f1(x) - 1/(x+3)
f2(x) - e square of -2x
f3(x) - In(x+5)
condition 1 - -5<x<=2
condition 2 - 2<x<=4