Need a program that prints out a graph for the sin(x) for values of x from 0 to 2*PI in increments of .05. Only variables, loops and printf is allowed. No strings or anything complicated.
Can be in any language of the following, Java, Python, C.
The output should look like:
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
In Python :
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0,2*np.pi,0.05);
y = np.sin(x)
plt.plot(x, y, marker="*")
plt.title('Sine Wave Graph')
plt.xlabel('x')
plt.ylabel('y = sin(x)')
plt.show()
please upvote.If any doubt comment below.I will give the answer.Thank You.

Need a program that prints out a graph for the sin(x) for values of x from...