Question: Write a method called plusScores that accepts a Scanner representing an input file containing a series of lines that represent student records. Each student record
Write a method called plusScores that accepts a Scanner representing an input file containing a series of lines that represent student records. Each student record takes up two lines of input. The first line has the student’s name and the second line has a series of plus and minus characters. Below is a sample input:
Kane, Erica
--+-+
Chandler, Adam
++-+
Martin, Jake
+++++++
For each student you should produce a line of output with the student’s name followed by a colon followed by the percent of plus characters. For the input above, your method should produce the following output:
Kane, Erica: 40.0% plus
Chandler, Adam: 75.0% plus
Martin, Jake: 100.0% plus
Step by Step Solution
3.55 Rating (162 Votes )
There are 3 Steps involved in it
public static void plusScores Scanner input while inputh... View full answer
Get step-by-step solutions from verified subject matter experts
