Question: Question 5 1 5 p t s File Processing Write a static method called reportScore that takes as a parameter a Scanner containing informat ion
Question
File Processing
Write a static method called reportScore that takes as a parameter a Scanner containing informat ion about a student's performance and that prints a report for that student.
Students are given gold stars for tasks they solved articularly well and minuses for tasks where they performed poorly. The information for each student is presented as a series of counttype pairs where each count is a positive integer and each type is either or
These counttype pairs are followed by the student's name which is guaranteed to be a single w ord
composed entirely of alphabetic characters. Consider this report:
Erica
It indicates that Erica got stars followed by minuses followed by star.
The overall score is computed by giving plus point for each star and one minus point for each minus.
The method produces exactly one line of output reporting this score and the total number of task
The table below includes several examples.
Scanner contents
table Erica
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
