Question: Make a graph plotting program using this example as a template. Have the following options: Set the Y values correctly visually, so that positive values
Make a graph plotting program using this example as a template.
Have the following options:
Set the Y values correctly visually, so that positive values go up (rather than down).
View Options
Checkbox to display grid (default on)
Currently the program draws axis lines. Add in marks at the 5 and 10 pixel positions.
Set an option for the graph line color: red, blue, green
Give the user the ability to
Set Axis labels. See if you can also do vertical text.
Title the graph on the upper left side.
Graphing Features:
Radio buttons for 3 (or more if you wish) premade options for functions:
Such as y=x, sin(x*5), pow(x,2) for example. You might need to make adjustments to the function so that the graph pleasing.
Select Equation radio button will allow a Select drop-down list to select a function to fill in the value:
Sin, Log, Power to allow the user the enter in a value to a premade function.
Manual equation radio button entry for a user to create the own function.
No default radio button.
This is an example layout. Please set the layout so that 1-5 have labels and not numbers. The colors are only for demonstration purposes, you can use the standard grey colors of the Form elements.
The radio buttons 1-3 would have names of the premade functions. Selecting a premade function will automatically display the graph.
4 would have a label for Select Equation. Once the user selects an equation, such as Sin, they can fill in the value in the box, such as x*5 or whatever they like. Your program will merge the value entered and equation they selected from the Select drop-down list. In this example it will create the function Math.sin(x*5)*180/Math.PI and use that for the graph. I'm not math orientated, I might be using equation/formula in the wrong context. Please email me if you have a better way to explain it. Also I may be using plotting/graphing interchangeable.
5 will allow a manual equation to be entered, which is what the example plotting currently program does.
The Plot button will plot based on options 4/5 in this example (for the Select Equation or Manual Equation).
The reset button will reset the form and the page at once:
http://www.sci.brooklyn.cuny.edu/~goetz/cisc3610/examples/4/Form%20Data/form-data.html
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
