Question: PLEASE HELP WITH JAVA! Project Requirements: Read CSV files for student grades and populate them in a map or class Get the total class average
PLEASE HELP WITH JAVA!
Project Requirements:
Read CSV files for student grades and populate them in a map or class
Get the total class average
Get the stat about How many A and how many F
Given a Student ID show all the information about the student
Show all the Student records
Bonus: write back the CSV with the student IDName and Grade in the local file
package citytech.automation;
import java.ioBufferedReader;
import java.ioFileReader;
public class RosterAutomation
public static void mainStringargs
Map studentMap new HashMap;
ID Name quiz Test MidTerm Test Final Presentation Coding Project
Philip Don
quiz
Test
MidTerm
Test
Final
Presentation
Coding Project
Total Score letter grade: A
var line ;
var splitBy ;
var fileName "classrosterproject.csv;
try
FileReader fileReader new FileReaderfileName;
BufferedReader br new BufferedReaderfileReader;
System.out.printlnbrreadLine;
line brreadLine;
array :
value Dindyal,Rajendra N
whileline null
System.out.printlnline;
String values line.splitsplitBy;
String id values;
String firstName values;
String lastName values;
double quiz Double.parseDoublevalues;
double test Double.parseDoublevalues;
double midterm Double.parseDoublevalues;
double test Double.parseDoublevalues;
double finalTest Double.parseDoublevalues;
double presentation Double.parseDoublevalues;
double project Double.parseDoublevalues;
line brreadLine;
catch Exception e
throw new RuntimeExceptionetoString;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
