Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java Function to get the class average using ethe current roster automation that reads the CSV file. import java.io . BufferedReader; import java.io
Write a Java Function to get the class average using ethe current roster automation that reads the CSV file. 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 C:UsersmarefinDownloadsclassrosterproject.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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started