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