Urgent! How to display this function,use symbol"*" to draw line
Here teacher gave one method to perform this function
public static long evaluations;
public static double func(double x)
result = Math.abs( Math.sin(0.017453292519943295769236907684886*x) * (x/90) );
qustion is how to use this method to draw this diagram
The menu has the following 3 options:
 Display function
 Find x-value
Option 1 lets the user roughly visualise the function on the terminal/console screen.
Option 2 lets the user search for a particular input value at which a specified output
value can be achieved. (See below for full descriptions of these options.) The program
can only be finished when the user selects option 3. Erroneous input should also not
be accepted at any stage.
Display function option:
When this option is selected, the user is allowed to enter an x value range and an
output width and a height. The program should then ensure that the portion of the
function that is chosen (through the x value range) correctly fits the specified
rectangular width and height.
Your program should also display the rough minimum and the maximum y values
encountered when plotting the graph. No additional search for minimum and
maximum y values should be performed. You must print the number of mathematical
function evaluations that you needed to plot the graph, as an indicator of the
efficiency of your code. You must always try to minimise this value as much as
possible. (Note: You cannot use arrays or similar data structures in this assignment).