Question: Need java code Write a method which can read and parse a file containing information about weekly feedback from apprentices about a mentor. The mentor
Need java code


Write a method which can read and parse a file containing information about weekly feedback from apprentices about a mentor. The mentor is rated in 4 different metrics, those are respectively (matReview, pres Skills, helpfulness, explanation) separated with 1 space: m = matReview p = pres Skills h = helpfulness e = explanation mphe // this is just an info line which is not in the actual file 1353 // this line is an answer from an apprentice 2343 // this is another response The method should return a map/ dictionary containing the average rating in 1/2 each metric) of the mentor. Example Example file can be found here. Output { "matReview": 2.25, "presSkills": 4.0, // or 4 is fine as well "helpfulness": 4.5, "explanations": 3.75 }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
