IN JAVA Arrange the data for your chart in a text file as follows: The first line of the file is the title for the chart The second line of the file is the units used in the chart The rest of the file contains data values for the chart alternating with the label to print with the value on the preceding line. The program must be able to produce a chart from any data file arranged as described above. The name of the data file and the output file are provided on the command line. The program must check that there are enough command line arguments and stop with a suitable message if not. The program saves the chart to the output file (2nd command line argument); it may also display the chart to the terminal, but it is not required to. In addition to the above, accept two additional command line arguments: The maximum width for the chart (just the bar itself, not including the labels) The symbol to use for the bars
IN JAVA
Arrange the data for your chart in a text file as follows:
-
The first line of the file is the title for the chart
-
The second line of the file is the units used in the chart
-
The rest of the file contains data values for the chart alternating with the label to print with the
value on the preceding line.
-
-
The
program must be able to produce a chart from any data file arranged as described above. -
The name of the data file and the output file are provided on the command line.
-
The program must check that there are enough command line arguments and stop with a
suitable message if not. The program saves the chart to the output file (2nd command line argument); it may also display the chart to the terminal, but it is not required to.
-
-
In addition to the above, accept two additional command line arguments:
-
The maximum width for the chart (just the bar itself, not including the labels)
-
The symbol to use for the bars
-
-


Step by step
Solved in 4 steps with 2 images









