Need this to be done by 7th November latest.
(Plot the Sine and cosine functions)
Write a program that plots the sine function in red and cosine in blue as shown in the attachment.
(the attached image is black&white, but graph lines should be colored red and blue)
Elements that must be present in the solution:
Graphics class must be used
The unicode for (pi) is \u03c0. To display -2pi, use [url removed, login to view]("-2\u03c0", x, y).
For a trigonometric function like sin(x),x is in radians.
Use the following loop to add the points to a polygon p:
for (int x = -170; x