Java : Write a static method named countMoney that accepts

profileadelen
 (Not rated)
 (Not rated)
Chat

 

Write a static method named countMoney that accepts as  its parameter a Scanner for an input file whose data represents a  person's money grouped into groups of bills.  Your method should add up  the cash values of all bills and print the total money at the end.  The  input consists of a series of pairs of tokens, where each pair begins  with an integer and is followed by the type of bill, which will be  either "bucks" (1 dollar each), "fives" (5 dollars each), "tens" (10  dollars each), "twenties" (20 dollars each), or
 

    • 7 years ago
    java code
    NOT RATED

    Purchase the answer to view it

    blurred-text