Assgnment #13 - Fixing the batting average program
Due Wednesday, March 1, 2017
In Assignment #10, we wrote a program to find
the batting averages for the starting line-up of the New York Mets.
You are going to make two changes to that program:
Format the output so the averages are calculated to three (3) decimal
places. There if the player got 2 hits and he had 3 at bats, his batting
average would be 0.667.
Add up the total hits and total At Bats for the team. To find the starting
lineup's batting average: