These series does not simplify in the way you would think. If you want to write a graphic for
$$\sum_{k=0}^{\infty} (-1)^{k+1}\frac{x^{2k}}{k!} = - e^{-x^2},$$
with error less than $0.001$, then you are going to need to take partial sums, that is fix some $n$, and take the partial sum $\displaystyle\sum_{k=0}^n$. You will probably do this with a looping mechanism. You will then need to decide how many terms you need to get that precision. If you were stumped on how to actually compute the sum, you just increment $k$ starting at $k=0$, add the term with $k=1$, then $k=2$ and so forth. Say you want like 4 terms. Then that is
\begin{align*}
\sum_{k=0}^{3} (-1)^{k+1}\frac{x^{2k}}{k!} &= -\frac{1}{0!}+\frac{x^2}{1!}-\frac{x^4}{2!}+\frac{x^6}{3!} \\
&=-1+x^2-\frac{x^4}{2}+\frac{x^6}{6} \\
\end{align*}
If you want a better approximation, take more terms.
I expect you will write some sort of For loop over $k$ to build a big partial sum, each time incrementing some variable y+= (the sum term you need to create evaluated at some fixed $x$ value - your real job ;) ), and that loop could run inside another for loop that goes over a list of $x$ values. That's a nested for loop, outer over $x$, inner over $k$, and you save the outputs for each $x$ in a table for graphing. As for computing error, this might help, If no one really cares about a rigorous error analysis, then just compute and test by trial and error how many terms works compared to the actual function that the sum represents.
I just wrote the equivalent in Mathematica, and 350 terms "looks" good, but "looks" might not be the standard called for in the assignment. It gets worse around the edges of your boundary. I would write the program, then choose the size of the series to take that is acceptable with the error analysis after the fact.