Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in java please and add comments and some explanation. write a program that will read and process a .csv file s the grades of all

in java please and add comments and some explanation.
image text in transcribed
image text in transcribed
image text in transcribed
write a program that will read and process a .csv file s the grades of all students in a class. (See Attached gram should follow the below requirements: sses in the package ilstu.edu: MainClass: Will have the main method: i. It will control the flow of your program. ii. It will prompt the user to select one of the following options (these options will keep being displayed after each selection until we exit the program): 1. Enter the file name to process 2. Print a list of all students This will print out all the student names to the console. 3. Generate a report card for a specific student a. If selected it will ask the user to enter the name of the student b. It will then call the writeFile method to generate the report card 4. Display statistics. a. It will print out the average of the class, the highest total and the lowest total. 5. Exit - StudentReport i. In your class you will have the following instance variables: 1. filename: a String that will hold the name of the file we want to read. 2. grades: a double 2d array that will hold the StudentReport i. In your class you will have the following instance variables: 1. filename: a String that will hold the name of the file we want to read. 2. grades: a double 2d array that will hold the grades for all the students. 3. students: a Id String array that will hold the names of all the students. 4. gradeditems: a 1d String array that will hold the names of all the graded items in the file ii. In your class you will have the following methods: 1. A constructor that will take the file name and instantiate the arrays. 2. readFile: - it will read the .csv file and store the values in the arrays we have. 3. writeFile: - it will generate a report card for the selected student and save it as a .txt file. The name of the file should be the student's name. - Your report file could have any formatting, but it should include the following: i. The student's name ii. Their grade in every exam, assignment with the appropriate label. For example: Exam one: 50. iii. Their Total. iv. Their letter grade. ( 90 and above A, 80-89 B, 70-79 C, 60-69 D, below 69E )

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

2. What does it mean to say that happiness is heritable?

Answered: 1 week ago