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

1 Expert Approved Answer
Step: 1 Unlock

public static void plusScores Scanner input while inputh... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Building Java Programs A Back to Basics Approach Questions!