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
-
The equity of a firm trades at 2.6 times book value of $239.0 million at the end of 2012 and your required return is 9 percent. The forward earnings forecast for 2013 is $33.46 million and the firm...
-
If the dimensions of a solid geometric figure are each multiplied by n, by how much is the volume multiplied? Explain, using a cube to illustrate.
-
An engineer prepares a report to evaluate a project using PW and IRR. Just before submitting the report, he spills coffee on it, making the first digit of the 2-digit IRR unreadable. The second digit...
-
Waterbury Corporation issued $16,000,000 in 8.5 percent, five-year bonds on March 1, 2014, at 96. The semiannual interest payment dates are September 1 and March 1. Prepare the journal entries to...
-
What are some similarities and differences between the Microsoft SQL Server, Oracle Database, Amazon Aurora, IBM Db2, and MySQL relational database vendors?
-
As part of a circus performance, a man is attempting to throw a dart into an apple which is dropped from an overhead platform. Upon release of the apple, the man has a reflex delay of 215...
-
Dawn Burton described the challenges of using ethnic approaches of segmenting target audiences for mixed-race consumers. What are those challenges and why should marketers be concerned about...
-
11. (Conceptual Cost Estimate) Use the conceptual cost estimate method to estimate the total cost of a 2,200 SF project to be built at Oklahoma City in 2028. The following projects are constructed in...
-
Subject 1 (40%) A. As a business valuation expert, you have been allotted with the project to estimate the cost of equity for Alton Holdings. Alton Holdings operates in three different business...
-
Problem 1: The present prices of a riskless asset, a stock, and an option, are provided in the first row of the table below. The next two rows contain the prices of these assets in the next week, in...
-
Beanie Babies are toy stuffed animals that have become valuable colector's items since the introduction of Ally the Alligator in 1994. Beanie World Magazine provided the information on 50 beanie...
-
Evaluate the systems documentations provided below using the accounts payable system. a. Identify any technical errors in the three documentations provided and suggest ways to improve those diagrams....
-
Hoi Chong Transport, Ltd., operates a fleet of delivery trucks in Singapore. The company has determined that if a truck is driven 105,000 kilometers during a year, the average operating cost is 11.4...
-
Define the essential properties of the following types of operating systems: a. Batch b. Interactive c. Time sharing d. Real time e. Network f. Parallel g. Distributed h. Clustered i. Handheld
-
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...
-
Suppose we have a small inhabited island with three residents and a volcano that generates air pollution. Two people live upwind of the volcano and one person lives downwind. For \(\$ 21,000\) we can...
-
Assume a city of \(1,000,000\) people, \(60 \%\) of whom are willing to pay \(\$ 1\) maximum (each) to clean up pollution. The rest of the population is wealthier and is willing to pay \(\$ 100\)...
-
In Figure 3.2, using the Pareto criterion, which of the labeled points are socially preferred to \(W\) ? Figure 3.2 Brewster's utility B w' R Anna's utility S
Study smarter with the SolutionInn App