Write Java Program.
(Plot the sine and cosine functions) Write a program that plots
the sine function in red and cosine in blue, as shown in Figure
14.48c.
Hint: The Unicode for P is u03c0. To display -2p, use Text(x, y,
"-2\u03c0"). For a trigonometric function like sin(x), x is in
radians. Use the following loop to add the points to a
polyline:
Polyline polyline = new polyline ();
ObservableList<Double> list = polyline.getPoints ();
double scaleFactor = 50;
for (int...