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 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
When workers demonstrate patience, are able to manage there emotions, and get along with other employees, which skills are being displayed?
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
Chemistry, 18.12.2020 23:00
question
Advanced Placement (AP), 18.12.2020 23:00
question
History, 18.12.2020 23:00
question
Mathematics, 18.12.2020 23:00
question
Mathematics, 18.12.2020 23:00
question
Mathematics, 18.12.2020 23:00
question
Social Studies, 18.12.2020 23:00
Questions on the website: 13722362