Write a Java program that reads from an input file whose data is a series of pairs of tokens, where each pair begins with an integer value and is followed by the type of coin, which will be “pennies” (1 cent each), “nickels” (5 cents each), “dimes” (10 cents each), or “quarters” (25 cents each), case-insensitively. Your program should add up the cash value of all the coins and then output the total amount of money. For example, if the input file contains the text 3 pennies 2 quarters 1 Pennies 23 NiCKeLs 4 DIMES then your program would output Total money = $2.09

"Get 15% discount on your first 3 orders with us"
Use the following coupon

Order Now