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, 21.06.2019 17:10
Write an application that allows a user to enter the names and birthdates of up to 10 friends. continue to prompt the user for names and birthdates until the user enters the sentinel value “zzz” for a name or has entered 10 names, whichever comes first. when the user is finished entering names, produce a count of how many names were entered, and then display the names. in a loop, continuously ask the user to type one of the names and display the corresponding birthdate or an error message if the name has not been previously entered. the loop continues until the user enters “zzz” for a name. save the application as birthdayreminder.java.
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
The three logical operators used to write compound conditions are "and," "or," and "not." a: true b: false
Answers: 2
question
Computers and Technology, 23.06.2019 12:20
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
question
Computers and Technology, 23.06.2019 19:00
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
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, 14.12.2020 19:30
question
Social Studies, 14.12.2020 19:30
Questions on the website: 13722360