Depending on what is given to calculate the following function, we write the program that calculates the function value and performs the drawing using *?
assumptions
always a > b , a and b must be integer
The start and end values will be automatically calculated so that the X value is 20 values, so that every time the function is run it tests every three regions of the function
for x > a , f(x) = 1
for b <= x <=a , f(x) = 0
for x < a , f(x) = -1
The function F (x) will be plotted with a graph of stars. (as in the example)
1 ********
0 ***********
-1 *****
can someone help me please im out of my mind.