Simonne
Nov 10, 2009, 09:17 AM
Generate a report using the provided data file. The file contains hitting statistics for baseball players from a few seasons ago. The report will consist of batters' name, total times at bat, total hits, and final batting average. Computations are as follows:
1. total at bats = plate appearances - walks
2. total hits = singles+doubles+triples+home runs
3. batting average = total hits/total at bats
Input data file Information:
INPUT FILE DESCRIPTION File name: Stats.txt
FIELD DESCRIPTION DATA TYPE DECIMALS
Name Character 0
Plate Appearances Numeric 0
Runs Numeric 0
Singles Numeric 0
Doubles Numeric 0
Triples Numeric 0
Home Runs Numeric 0
RBIs Numeric 0
Stolen Bases Numeric 0
Walks Numeric 0
Note: The first record in the input file contains field names.
the data file has a list of players with their stats. If someone could just help me understand what I am suppose to do that would be extremely helpful :)
thank you
1. total at bats = plate appearances - walks
2. total hits = singles+doubles+triples+home runs
3. batting average = total hits/total at bats
Input data file Information:
INPUT FILE DESCRIPTION File name: Stats.txt
FIELD DESCRIPTION DATA TYPE DECIMALS
Name Character 0
Plate Appearances Numeric 0
Runs Numeric 0
Singles Numeric 0
Doubles Numeric 0
Triples Numeric 0
Home Runs Numeric 0
RBIs Numeric 0
Stolen Bases Numeric 0
Walks Numeric 0
Note: The first record in the input file contains field names.
the data file has a list of players with their stats. If someone could just help me understand what I am suppose to do that would be extremely helpful :)
thank you