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 20:00
What side length would you specify if you were required to create a regular hexagonal plate that was composed of 33 cm(squared) of sheet metal? dimension the side length to 0.1 cm
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
What does 21 pilots middle aged name as a band 15 years prior to them naming their band 21 pilots?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
In the context of the box model, what is the difference between a margin and a padding? a. a padding lies outside a box border, while a margin lies inside it. b. a padding lies inside a box border, while a margin lies outside it. c. a padding can be adjusted independently, while a margin depends on the size of its box. d. a padding depends on the size of its box, while a margin can be adjusted independently.
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, 26.06.2020 16:01
question
Mathematics, 26.06.2020 16:01
question
Mathematics, 26.06.2020 16:01
question
Mathematics, 26.06.2020 16:01