Java Reference
In-Depth Information
Sample Run:
Course ID
Group No
Course Average
CSC
1
83.71
2
80.82
ENG
1
82.00
2
78.20
HIS
1
77.69
2
84.15
MTH
1
83.57
2
84.29
PHY
1
83.22
2
82.60
Avg for group 1: 82.04
Avg for group 2: 82.01
7
Input Data Group 1:
CSC 80 100 70 80 72 90 89 100 83 70 90 73 85 90 -999
ENG 80 90 80 94 90 74 78 63 83 80 90 -999
HIS 90 70 80 70 90 50 89 83 90 68 90 60 80 -999
MTH 74 80 75 89 90 73 90 82 74 90 84 100 90 79 -999
PHY 100 83 93 80 63 78 88 89 75 -999
Input Data Group 2:
CSC 90 75 90 75 80 89 100 60 80 70 80 -999
ENG 80 80 70 68 70 78 80 90 90 76 -999
HIS 100 80 80 70 90 76 88 90 90 75 90 85 80 -999
MTH 80 85 85 92 90 90 74 90 83 65 72 90 84 100 -999
PHY 90 93 73 85 68 75 67 100 87 88 -999
BAR
GRAPHS
In the business world, company executives often like to see results in a visual form, such
as bar graphs. Many software packages can analyze data in several forms and then display
the results in such visual forms as bar graphs or pie charts. The second part of this program
displays the earlier results in the form of bar graphs, as shown below:
Course
Course Average
ID
0 10 20 30 40 50 60 70 80 90 100
|....|....|....|....|....|....|....|....|....|....|
CSC
*****************************************
########################################
ENG
*****************************************
#######################################
Search WWH ::




Custom Search