subject

Write a program that reads the student information from a comma separated values (csv) file. The program then creates a text file that records the course grades of the students. Each row of the file contains the Last Name, First Name, Midterm score, Midterm2 score, and the Final score of a student each separated by a comma. A sample of the student information is provided in Studentinfo. txt. Assume the number of students is at least 1 and at most 20. The program performs the following tasks: . Read the file name of the file from the user Open the text file and read the student information Compute the average exam score of each student • Assign a letter grade to each student based on the average exam score in the following scale OA: 90 X B:80 x < 90 o C70 •< X < 80 o D: 60 < x < 70 • FX60 • Compute the average of each exam • Output the last names, first names, exam scores, and letter grades of the students into a text file named report. txt. Output one student per row and separate the values with a tab character Output tile average of each exam, with two digits after the decimal point at the end of report txt. Hint Use the precision sub-specifier to format the output Ex If the input of the program is: StudentInfo. txt and the contents of Studentinfo. txt are Barrett, Edan, 70,45,59 Bradshaw, Reagan, 96,97,88 Charlton, Calus, 73, 94,80 Mayo, Tyrese, 88, 61,36 Stern, Brenda, 90, 86,45 the file report. txt should contain: Barrett Edan 70 45 59 F Bradshaw Reagan 96 97 88 A Charlton Calus 73 94 80 B Mayo Tyrese 88 61 36 D Stern Brenda 90 86 45 c Averages: Midterm 83.40. Midterm2 76.60, Final 61.60 LAB ACTIVITY 14.5.1: LAB": Course Grade 0/10 Downloadable files StudentInfo. txt Download Laad defciuit template LabProgram. java 3 import java. io. FileOutputStream; 4 import java. io. Printiriter; 5 import java. io. IOException: 6 7 public class LabProgran public static void main(String args) throws 10Exception Scanner sehr new Scanner(System. in); TODO: Declare any necessary variables here. */ 12 13 14 1000: Read a file name from the user and read the tsv file here. 15 16 17 /* TO00: Compute student grades and exam averages, then output results to o text file here. 18 19 9 10 11

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:30
Which of the choices sean are not true when considering virus behavior
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
question
Computers and Technology, 23.06.2019 02:30
Which component acts as a platform on which application software runs
Answers: 2
question
Computers and Technology, 23.06.2019 08:30
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
You know the right answer?
Write a program that reads the student information from a comma separated values (csv) file. The pro...
Questions
question
Health, 30.11.2019 19:31
Questions on the website: 13722363