Question: Using JAVA and nothing else: You are given the following schooling.csv file that contains the following details in column order: Class Course number Course

Using JAVA and nothing else: You are given the following schooling.csv file that contains the following details in column order: Class Course number Course credits Grade received PASS/FAIL GPA Conversion You are tasked with writing a reader program (SCHOOLReader.java) that will be able to read the given schooling.csv file, along with GPA.java main driver program that displays the averages for the given input of Class or Course #. The output of your program should display if the input is: MATH Averages for MATH Class: Average Credits: 3.57 Average Grade: 2.89 Ratio of Pass/Fail: 0.714 The output of your program should display if the input is: 401 Averages for Passed Class: Average Credits: 2.63 Average Grade: 3.13 Ratio of Pass/Fail: 0.875 The output of your program should display if invalid Class #: 625 Class #: Class not found Given JAVA code: SCHOOLReader.java import java.io.File; import java.io.IOException; import java.util.scanner; public class SCHOOLReader{ } Example of code for SCHOOLReader: try{ fileScanner = new Scanner(new File(file)); }catch (IOException io){ lo.printStackTrace(); } 1 2 3 GPA.java: 28 29 30 A Class import java.until.Scanner; MATH MATH MATH public class Stats{ 101 102 102 5 MATH 103 6 103 7 MATH MATH MATH 104 8 105 9 ENGLISH 201 10 ENGLISH 202 11 ENGLISH 203 12 ENGLISH 204 13 ENGLISH 205 14 ENGLISH 206 15 CHEM 301 16 CHEM 302 17 CHEM 303 18 CHEM 304 19 CHEM 305 20 HISTORY 401 21 HISTORY 402 22 HISTORY 403 23 HISTORY 404 24 HISTORY 405 25 HISTORY 406 26 HISTORY 407 27 HISTORY 408 public static void main(String[] args) { stats final = new stats(); } Example of how to call your methods: } private void processFile(String file){ SCHOOLReader reader = new SCHOOLReader(); } } schooling.csv file screenshot reader.initialize(file); while(reader.hasNext()){ processLine(reader.getNext()); B C Course # Credits 3 4 4 3 3 4 4 3 3 3 3 3 4 3 3 4 1 3 4 2 UN 3 3 2 3 D Grade PASS/FAIL GPA Conversion A D+ A JUADO A U B+ 8+ A- B- B+ B- C- A B- Pass Fail Pass Fail Pass Pass Pass Fail Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Pass Fail Pass Pass Pass Pass Pass 4.000 1.334 4.000 1.667 2.000 4.000 3.000 1.000 4.000 3.667 3.334 3.334 3.667 4.000 3.000 2.667 3.334 2.667 4.000 3.000 1.667 4.000 4.000 4.000 3.000 2.667 G
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
