Can you write a new code in Java language with the values ​​I sent you, just like this output? There are two files named group1.txt and group2.txt that contain course information and grades of each student for each class. I will calculate each course average for each group and show in simple bar graph. Use "*" and "#"characters for group1 and group2, respectively. I will see the number -999 at the end of each line in the input files. This value is used for line termination and you can use it to verify that you have arrived at the end of the line. The averages of each group should also be calculated and printed at the end of the file. Group 1: CSC 80 100 70 80 72 90 89 100 83 70 90 73 85 90 -999ENG 80 90 80 94 90 74 78 63 83 80 90 -999HIS 90 70 80 70 90 50 89 83 90 68 90 60 80 -999MTH 74 80 75 89 90 73 90 82 74 90 84 100 90 79 -999PHY 100 83 93 80 63 78 88 89 75 -999 Group 2: CSC 90 75 90 75 80 89 100 60 80 70 80 -999ENG 80 80 70 68 70 78 80 90 90 76 -999HIS 100 80 80 70 90 76 88 90 90 75 90 85 80 -999MTH 80 85 85 92 90 90 74 90 83 65 72 90 84 100 -999PHY 90 93 73 85 68 75 67 100 87 88 -999

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Can you write a new code in Java language with the values ​​I sent you, just like this output? There are two files named group1.txt and group2.txt that contain course information and grades of each student for each class. I will calculate each course average for each group and show in simple bar graph. Use "*" and "#"characters for group1 and group2, respectively. I will see the number -999 at the end of each line in the input files. This value is used for line termination and you can use it to verify that you have arrived at the end of the line. The averages of each group should also be calculated and printed at the end of the file.

Group 1:

CSC 80 100 70 80 72 90 89 100 83 70 90 73 85 90 -999ENG 80 90 80 94 90 74 78 63 83 80 90 -999HIS 90 70 80 70 90 50 89 83 90 68 90 60 80 -999MTH 74 80 75 89 90 73 90 82 74 90 84 100 90 79 -999PHY 100 83 93 80 63 78 88 89 75 -999

Group 2:

CSC 90 75 90 75 80 89 100 60 80 70 80 -999ENG 80 80 70 68 70 78 80 90 90 76 -999HIS 100 80 80 70 90 76 88 90 90 75 90 85 80 -999MTH 80 85 85 92 90 90 74 90 83 65 72 90 84 100 -999PHY 90 93 73 85 68 75 67 100 87 88 -999

student.txt - Notepad
File Edit Format View
Help
Bar Graph
Course
Course
10
20
30
40
50
60
70
80
90
100
ID
Average |.
**********
**关美
美
CSC
83.71
80.82
井井
ENG
82.00
78.20
###
%23%23
***************
***************
HIS
77.69
84.15
###
#3%#3%23
********************
*******************
MTH
83.57
84.29
############################################
*****************************************
PHY
83.22
82.60
########
###
F2######
Group 1
Group 2
Avg for group 1: 82.04
Avg for group 2: 82.01
****
####
Transcribed Image Text:student.txt - Notepad File Edit Format View Help Bar Graph Course Course 10 20 30 40 50 60 70 80 90 100 ID Average |. ********** **关美 美 CSC 83.71 80.82 井井 ENG 82.00 78.20 ### %23%23 *************** *************** HIS 77.69 84.15 ### #3%#3%23 ******************** ******************* MTH 83.57 84.29 ############################################ ***************************************** PHY 83.22 82.60 ######## ### F2###### Group 1 Group 2 Avg for group 1: 82.04 Avg for group 2: 82.01 **** ####
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY