Exercise : frequentFlier practice-it

Write a method frequentFlier that accepts a Scanner for an input file of ticket type / mileage pairs and reports how many frequent-flier miles the person earned.

For example, given the input below, your method should return 15600 (2*5000 + 1500 + 100 + 2*2000).

firstclass  5000 coach   1500  coach
100 firstclass 2000  discount 300