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 09:30
What are the steps involved in accepting all the changes in a document? arrange these in order click edit. click accept or reject. click changes. click accept all.
Answers: 1
question
Computers and Technology, 24.06.2019 03:00
Will do anything for brainlest so can you guys me out i will try my best to you out
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Why is it uncommon for users to perform searches directly in database tables? a.)users are discouraged from interacting directly with tables because they might confuse tables with spreadsheets. b.) users are discouraged from interacting directly with tables because this may result in unintended changes to source data. c.)users do not have the technical skills required to perform searches directly in database tables. d.)users do not have the permissions required to perform searches directly in database tables.
Answers: 1
question
Computers and Technology, 25.06.2019 05:10
Assume that two parallel arrays have been declared and initialized: healthoption an array of type char that contains letter codes for different healthcare options and annual cost an array of type int. the i-th element of annual cost indicates the annual cost of the i-th element of healthoption. in addition, there is an char variable, best2.write the code necessary to assign to best2 the health option with the lower annual cost, considering only the first two healthcare options. thus, if the values of healthoption are 'b', 'q', 'w', 'z' and the values of annualcost are 8430, 9400, 7050, 6400 your code would assign 'b' to best2 because 8430 is less than 9400 and is associated with 'b' in the parallel array. (we ignore 'w' and 'z' because we are considering only the first two options.)
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
Mathematics, 13.07.2021 04:30
question
Mathematics, 13.07.2021 04:30
question
Mathematics, 13.07.2021 04:30