Need programming help with Java Homework – Scanner input file

Get perfect grades by consistently using Place your order and get a quality paper today. Take advantage of our current 20% discount by using the coupon code GET20

Order a Similar Paper Order a Different Paper

Write a method that accepts a Scanner representing an input file of coin flips that (H) for head and (T) tails. Consider each line to be a separate set of coin flips and output the number and percentage of heads in that line.  If it is more than 50% pint You win!

file has:


T t         t  T  h H

Output should read:

3 Heads (60.0%)

You win

2 Tails

Question # 2;

Write a method that will accept scanner representing an input file with names on each line separated by spaces. Some names will appear multiple times,  print the most common name for each line, if there is a tie use the first name.  If all names are unique print the first name on the line

I do know how to use Scanner and read from files.

Do you need help with this or a different assignment? We offer CONFIDENTIAL, ORIGINAL (Turnitin/LopesWrite/SafeAssign checks), and PRIVATE services using latest (within 5 years) peer-reviewed articles. Kindly click on ORDER NOW to receive an A++ paper from our masters- and PhD writers.

Get a 15% discount on your order using the following coupon code SAVE15

Order a Similar Paper Order a Different Paper