Question: The file material_mr.csv located in the /examples/ folder contains information the name and the machinability rating for multiple materials. Remember that material rating is given
The file material_mr.csv located in the /examples/ folder contains information the name and the machinability rating for multiple materials. Remember that material rating is given as a percentage. A material_mr.csv file with two materials would look similar to the following:
Class files H2_Q1.java and MRData.java are provided for you as a starting point and are located in the /src/studentWork folder. Modify the code in both files to accomplish the following:
-
Read in (using OpenCSV) both the name and machinability rating for each material.
-
Calculate the cutting speed for each material using the information provided and the fact that the cutting velocity for B1112 Steel is 165 surface feet per minute.
-
Output the cutting speed for each material to the console with material name.


6 H2_Q1.java x 1 package studentwork; import ... 600 v w NP public class H2_Q1 { public static void main(String[] args) throws FileNotFoundException { 22 //the IDE warnings (yellow) can be ignored since we know the type List
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
