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...



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

Nov 14, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here