Each function should accept two integer parameters indicating the minimum and maximum X value to be plotted. The functions should have no return values. Create class-level constants for things we might wish to change later, e.g., a char called PLOT_CHAR that holds an “x” (per samples below), another char called FILL_CHAR that holds an unobtrusive character like ASCII 183, generated with a cast, e.g., (char)183. JAVA PLEASE THOSE ARE NOT PERIODS OR DOTS. USE (System.out.print((Char)183); for (.) Please DON'T USE Loops(while);, if, Arrays, lists, or other data structures, objects, libraries, or methods. Sideways Plot y = 20sin(.5x)+20 where -11<=x<=11 ··································x ·······································x ·······································x ···································x ···························x ·················x ········x ·x x ···x ··········x ····················x ·····························x ····································x ·······································x ······································x ·······························x ······················x ············x ····x x x ·····x The area under the plot is 449 carefully; these are not PERIODS or DOCTS
Each function should accept two integer parameters indicating the minimum and maximum X value to be plotted. The functions should have no return values. Create class-level constants for things we might wish to change later, e.g., a char called PLOT_CHAR that holds an “x” (per samples below), another char called FILL_CHAR that holds an unobtrusive character like ASCII 183, generated with a cast, e.g., (char)183.
JAVA PLEASE
THOSE ARE NOT PERIODS OR DOTS.
USE (System.out.print((Char)183); for (.)
Please DON'T USE Loops(while);, if, Arrays, lists, or other data structures, objects, libraries, or methods.
Sideways Plot
y = 20sin(.5x)+20 where -11<=x<=11
··································x
·······································x
·······································x
···································x
···························x
·················x
········x
·x
x
···x
··········x
····················x
·····························x
····································x
·······································x
······································x
·······························x
······················x
············x
····x
x
x
·····x
The area under the plot is 449
carefully; these are not PERIODS or DOCTS
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images