Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java: I have the following assignment: I have a csv file located at C:/Proj4/Project_4.csv with the following information below. I also do not understand what

Java: I have the following assignment: I have a csv file located at "C:/Proj4/Project_4.csv" with the following information below. I also do not understand what he means by a histogram. Please explain what the professor wants. Thank you so much.

ASSIGNMENT:

Create a program that can read, parse, and analyze student grade data. Your program should prompt the user for the name of a file to read, Project_4.csv. Your program should check if the file exists and is available to read. If not, it should handle that gracefully and prompt the user for a different file. The format of the file is shown below - file distributed with this description.

FILTER DATA:

1. If a score exists in the file that is not between 0 and 100, discard all data for that student. 2. If a student is excluded by the above rule, they should not be part of the summary data for the class. Your program should prompt the user to enter in the level of granularity of the output. Thus, if the user enters "10", the final histogram should be grouped into 10 bins (0

OUTPUT.TXT:

The output consists of three main parts and should be stored in a file whose name specified by the user: 1. Student rows in the input that contain invalid data (score not between 0 and 100) should print a notice stating "Invalid score of -12 for Dave Thomas", where "-12" is the offending datum and "Dave Thomas" is the student's name. i. You can assume that the data will be integers. No handling of type errors is required. 2. Students with valid data should call a toString() function which outputs their name, average for the course, and whether or not they passed. If they would have passed if not for scholarship requirements, state that as well. 3. A histogram of the student data partitioned into the number of bins defined by the user

Sample Program run Input the name of the input file:Project_4.csv Input the name of the output file:output.txt Enter the number of bins for the histogram:10

Project_4.csv

image text in transcribed

Output text:

Caron Devers has a course average of 92 - PASS Kylie Whitham has a course average of 74 - PASS Tami Davenport has a course average of 85 - FAIL due to not meeting scholarship minimum of 90 Invalid score of 110 for In Desilets Roma Skelton has a course average of 69 - PASS Diana Barletta has a course average of 95 - PASS Debroah Darrell has a course average of 49 - FAIL Marcelina Mccain has a course average of 93 - PASS Shirely Gisi has a course average of 79 - PASS Monique Montesdeoca has a course average of 82 - FAIL due to not meeting scholarship minimum of 90 Invalid score of -3 for Shana Harrill Luigi Botello has a course average of 67 - PASS Heidy Filippi has a course average of 92 - PASS Nadine Broadnax has a course average of 31 - FAIL Olen Brand has a course average of 90 - PASS Nancee Farnsworth has a course average of 74 - PASS Valentine Lamontagne has a course average of 87 - PASS Sherley Slinkard has a course average of 76 - PASS Lovie Peppler has a course average of 65 - PASS Carlota Peltz has a course average of 77 - PASS Professor Fancy-Pants has a course average of 100 - PASS * * * * * * * * * * * * * * * * * * * 0 10 20 30 40 50 60 70 80 90 100 Submission

1 Student 2 Caron Devers 3 Kylie Whitham 4 Tami Davenport 5 In Desilets 6 Roma Skelton 7 Diana Barletta 8 Debroah Darrell 9 Marcelina Mccain 10 Shirely Gisi 11 Monique Montesdeoca 12 Shana Harrill 13 Luigi Botello 14 Heidy Filippi 15 Nadine Broadnax 16 Olen Brand 17 Nancee Farnsworth 18 Valentine Lamontagne 19 Sherley Slinkard 20 Lovie Peppler 21 Carlota Peltz 22 Professor Fancy-Pants Scholarship requirement 92 81 91 95 91 72 83 91 74 81 76 83 51 76 74 95 81 110 53 92 57 91 76 97 51 91 92 100 53 97 72 81 51 93 83 91 95 92 95 81 72 76 81 75 74 83 83 63 92 76 81 76 75 63 76 63 91 42 93 93 10 100 93 93 91 43 95 39 42 97 75 24 95 72 83 74. 91 76 76 76 72 76 100 57 81 100 75 100 72 100 83 83 100 100 100 100 100 100 100 100

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago

Question

Explain the factors that determine the degree of decentralisation

Answered: 1 week ago

Question

What Is acidity?

Answered: 1 week ago