Question: 7 . 8 LAB: Course Grades Write a program that reads the student information from a tab separated values ( tsv ) file. The program
LAB: Course Grades
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, Midterm score, Midterm score, and the Final score of a student. A sample of the student information is provided in StudentInfo.tsv Assume also the last names and first names do not contain whitespaces.
The program performs the following tasks:
Read the file name of the tsv file from the user.
Open the tsv 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:
A:
and the contents of studentinto.tv are:
the file report.txt should contain:
y
LAB
: LAB: Course Grades
Downloadable files
Download
LabProgram.java
import java.ioFileNotFoundException;
import java.ioFileReader;
import java.ioPrintWriter;
import java.util.Scanner;
public class LabProgram
public static vold mainString args
Scanner console new ScannerSystenin; keyboard inputs
use trycatch
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
