Description Here is a sample interaction between a user and the program you will write in the exercise. (User input is in bold.) Enter file name: c:\\info.txt Name Scorel Score2 Score3 Total Andy Borders John Smith John Borell 200 250 400 850 120 220 330 670 250 250 500 1000 Robert Fennel 350 200 230 150 700 Craig Fenner Bill Johnson 220 480 930 120 150 220 490 Brent Garland 220 240 350 810 The total number of student in this class is: 7 The average total score of the class is: John Borell got the maximum score of: Bill Johnson got the minimum score of: 778 1000 490 Note that the filen ame supplied includes the full path. Specify a full path or the IDE will not find the file. The program performs the following actions: 1. Ask the user for the name of a file containing information about stu dent scores and input the file name. (See “Input file format" for a description of the format of the file.) 2. Input the student information from the file and store in an appropri ate array of Student objects. See "Setup" for a description of this. 3. Output a well-formatted table containing the name, individual scores and total score for each student. 4. Output the number of students in the class, the average total score, the maximum total score and the minimum total score in the class, including the names of the students with the maximum and minimum scores.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter6: Sub And Function Procedures
Section: Chapter Questions
Problem 10E
icon
Related questions
Question

The code must be in Java

Use arrays for this. Do not use ArrayLists.

  • Read all input as Strings. Use Integer.parseInt(String integer_value) to get the numeric value from it.

  • To create each new element in the array of students use the new keyword and the Student constructor. I.e., studentList[i] = new Student(line, Integer.parseInt(line1),…

info.txt

9

Andy Borders

200

250

400

John Smith

120

220

330

Alvin Smith

225

300

278

Mike Borell

250

250

500

Jim Jones

325

325

155

Robert Fennel

200

150

350

Craig Fenner

230

220

480

Bill Johnson

120

150

220

Brent Garland

220

240

350

Description
Here is a sample interaction between a user and the program you will write in the exercise.
(User input is in bold.)
Enter file name: c:\\info.txt
Name
Scorel Score2 Score3n Total
Andy Borders
John Smith
200
250
400
850
120
220
330
670
John Borel]
Robert Fennel
250
250
500
1000
200
150
350
700
Craig Fenner
Bill Johnson
230
220
480
930
120
150
220
490
Brent Garland
220
240
350
810
--- --
The total number of student in this class is:
7
The average total score of the class is:
John Borell got the maximum score of:
Bill Johnson got the minimum score of:
778
1000
490
Note that the filename supplied includes the full path. Specify a full path or the IDE will not find
the file.
The program performs the following actions:
1. Ask the user for the name of a file containing information about stu dent scores and input
the file name. (See “Input file format" for a description of the format of the file.)
2. Input the student information from the file and store in an appropri ate array of Student
objects. See “Setup" for a description of this.
3. Output a well-formatted table containing the name, individual scores and total score for
each student.
4. Output the number of students in the class, the average total score, the maximum total
score and the minimum total score in the class, including the names of the students with
the maximum and minimum scores.
Transcribed Image Text:Description Here is a sample interaction between a user and the program you will write in the exercise. (User input is in bold.) Enter file name: c:\\info.txt Name Scorel Score2 Score3n Total Andy Borders John Smith 200 250 400 850 120 220 330 670 John Borel] Robert Fennel 250 250 500 1000 200 150 350 700 Craig Fenner Bill Johnson 230 220 480 930 120 150 220 490 Brent Garland 220 240 350 810 --- -- The total number of student in this class is: 7 The average total score of the class is: John Borell got the maximum score of: Bill Johnson got the minimum score of: 778 1000 490 Note that the filename supplied includes the full path. Specify a full path or the IDE will not find the file. The program performs the following actions: 1. Ask the user for the name of a file containing information about stu dent scores and input the file name. (See “Input file format" for a description of the format of the file.) 2. Input the student information from the file and store in an appropri ate array of Student objects. See “Setup" for a description of this. 3. Output a well-formatted table containing the name, individual scores and total score for each student. 4. Output the number of students in the class, the average total score, the maximum total score and the minimum total score in the class, including the names of the students with the maximum and minimum scores.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning