The objectives for this assignment are for you to:

mkdir cse20211/lab4 cd cse20211/lab4For this assignment, you will be using the simple graphics library created for this class. Follow that link, download the example program, and skim through the function reference. (Return to it later as needed.)

Try writing several functions in this order:

Draws the numeral

Draws the given numeral as above.

Draws the single numeral 'n' (0-9) at the given position

T(x) = x - x^3/3! + x^5/5! - x^7/7! + ...The program should open a large window and display the X and Y axes on the

The program will how show the approximation varies
with the number of terms computed. Initially, you should only display
the first-term approximation of simply `T(x)=x`. If the user
presses the plus (or minus) key, that should increase (or decrease)
the number of terms used in the function by one and cause the function
to be re-plotted. The number of terms used in the current display should be shown on the screen.

That is, the program should initially plot the function `T(x)=x`,
if the user presses the plus key, then it should plot `T(x)=x - x^3/3!`
and wait for more input. As the number of terms is increased, the function
`T(x)` will look more and more like `sin(x)`.

As above, make extensive use of functions to keep your code short and simple. You should have a function to compute the Taylor series at a point x, a function to plot the function on the screen, a function to draw the X axis, a function to draw an integer, and so forth. If any one function is more than 5-10 lines long, then it is probably getting too complicated, and you should break it into smaller functions.

For example, you might have a slider moving left and right, from which is hung a pendulum that swings back and forth, at the end of which are four arms spining in a circle, each with a piston sliding in and out radially, each with a little car with a rider at the end.

Keep the program simple and easy to read by using functions extensively. Each axis of motion should be its own function that draws some part of the structure, then calls one or more function(s) to draw the next part(s) with its own axis of motion.

Be creative!

Turn in `numbers.c`, `graph.c`, `carnival.c`, and `report.txt`. Your lab report should explain the final part of the assignment,
explaning how it works from the user perspective,
how the program works internally,
and how you verified that the output of the program is correct.

Please review the general instructions for turning in.