Using JAVA and nothing else: You are given the following schooling.csv file that contains the following...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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(); } 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 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
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
123 Compare the purely graphical properties of these two notations, and the ways in which the graphical properties of each display correspond to the information structure being defined. Describe...
-
Solve Utt = cUTT 0
-
Prepare an answer sheet with the column headings shown after the following list of transactions. Record the effect, if any, of the transaction entry or adjusting entry on the appropriate balance...
-
Virginia and Richard are married taxpayers with adjusted gross income of $43,000 in 2022. If Virginia is able to make a $1,500 contribution to her IRA and Richard makes a $1,500 contribution to his...
-
Carter Roofing, Corp., was recently formed as a corporation. The balance of each item in the companys accounting equation is shown for December 1 and for each of the following business days....
-
Following is a partially completed balance sheet for Epsico, Inc., at December 31, 2010, together with comparative data for the year ended December 31, 2009. From the statement of cash flows for the...
-
What is the logic behind using asset betas in using industry comparable firms to estimate target firm's beta?
-
Tony and Suzie are ready to expand Great Adventures even further in 2025. Tony believes that many groups in the community (for example, Boys and Girls Clubs, church groups, civic groups, and local...
-
For a high frequency wave that has W>>Wce and Wce, show that the angle of rotation is proportional to the product of electron density and magnetic field strength.
-
An individual weighs 83.5 kg and is 1.85 m tall. (a) What is the person's equivalent measurement in pounds? Mass = pounds (b) What is the person's equivalent measurement in feet? Height f
-
Manuel Company predicts it will operate at 8 0 % of its productive capacity. Its overhead allocation base is DLH and its standard amount per allocation base is 0 . 5 DLH per unit. The company reports...
-
By examining a wave's pattern after it interacts with a barrier or gap, measurements can be made to better understand certain wave phenomena. What is a broad question you can answer by doing this...
-
Knowing that change is inevitable, and people resist change, how can leaders overcome this resistance? What would happen if no change at all occurred in health care? Why do nursing staff seem...
-
How can I create the Mathematica model of the inverted pendulum with a moving vertically base? To dos For the described system do the following: (a) Prepare the Mathematica model of the inverted...
-
AAA Ltd is a Singapore-incorporated company whose functional and presentation currency is Singapore Dollar (S$). BBB Bhd is a Malaysia-incorporated company whose functional and presentation currency...
-
Calculate the number of neutrons of 239Pu.
-
Ken (age 31) and Amy (age 28) Booth have brought you the following information regarding their income, expenses, and withholding for the year. They are unsure which of these items must be used to...
-
Jason and Mary are married taxpayers in 2012. They are both under age 65 and in good health. For this tax year, they have a total of $41,000 in wages and $500 in interest income. Jason and Mary's...
-
Mark owns his home and has a $250,000 mortgage related to his purchase of the residence. When his daughter went to college in the fall of 2012, he borrowed $20,000 through a home equity loan on his...
-
Use data from Appendix \(C\) to choose points from the performance curves for a Peerless horizontal split case Type 16A18B pump at 705 and 880 nominal rpm. Obtain and plot curve-fits of total head...
-
An axial-flow fan operates in sea-level air at \(1350 \mathrm{rpm}\) and has a blade tip diameter of \(3 \mathrm{ft}\) and a root diameter of \(2.5 \mathrm{ft}\). The inlet angles are...
-
Data from tests of a water suction pump operated at \(2000 \mathrm{rpm}\) with a 12 -in.-diameter impeller are Plot the performance curves for this pump; include a curve of efficiency versus volume...
Study smarter with the SolutionInn App