learned about java printf method and updated program to output the rest of the totals