Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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