6.17 LAB: Course Grade Write a program that reads the student information from a tab separated values (tsv) file. The pr

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
correctanswer
Posts: 43759
Joined: Sat Aug 07, 2021 7:38 am

6.17 LAB: Course Grade Write a program that reads the student information from a tab separated values (tsv) file. The pr

Post by correctanswer »

6.17 LAB: Course Grade
Write a program that reads the student information from a tab
separated values (tsv) file. The program then creates a text file
that records the course grades of the students. Each row of the tsv
file contains the Last Name, First Name, Midterm1 score, Midterm2
score, and the Final score of a student. A sample of the student
information is provided in StudentInfo.tsv. Assume the number of
students is at least 1 and at most 20. The program performs the
following tasks:
Ex: If the input of the program is:
and the contents of StudentInfo.tsv are:
the file report.txt should contain:
import java.util.Scanner;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.io.IOException;
public class LabProgram {
public static void main(String[] args) throws
IOException {
Scanner scnr = new Scanner(System.in);

/* TODO: Declare any necessary variables here.
*/


/* TODO: Read a file name from the user and
read the tsv file here. */


/* TODO: Compute student grades and
test averages, then output results to a text file here.
*/

}
}
Register for solutions, replies, and use board search function. Answer Happy Forum is an archive of questions covering all technical subjects across the Internet.
Post Reply