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.
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.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
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.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education