Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

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.
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education