courses : | ||
---|---|---|
WebDesign | >Php 8.2 | Laravel 10.X |
Angular Js | React Js | Node Js |
Python 3.11 | Django | Java |
Advance Java | Hibernate 4.X | Spring 4.X |
please contact khalsasoft@gmail.com
Batting data since 1871 is included in the attached Batting.csv (sourced from Github) Player data is included in the attached People.csv (Note, I had to delete data from 1936-1989 due to Zybooks having a limit on file upload sizes).
Using this data, write a program that computes statistics about players and prints with a configurable output.
Prompt the user for:
Three sample runs of baseball stats are:
Player description (name/given/id): id Statistic (avg/abhr): avg Top: Skip: Minimum: cobbty01 0.36633143856580674 hornsro01 0.35872781065088755 jacksjo01 0.3557518570568159 odoulle01 0.3492647058823529 simmoal01 0.3471000447293872
Player description (name/given/id): bad choice invalid Player description (name/given/id): id Statistic (avg/abhr): bad choice invalid Statistic (avg/abhr): avg Top: dog invalid Top: -8 positive required Top: 5 Skip: dog invalid Skip: -15 non-negative required Skip: 0 Minimum: dog invalid Minimum: -30 positive required Minimum: 3000 cobbty01 0.36633143856580674 hornsro01 0.35872781065088755 jacksjo01 0.3557518570568159 odoulle01 0.3492647058823529 simmoal01 0.3471000447293872
Player description (name/given/id): name Statistic (avg/abhr): abhr Top: 1 Skip: 5 Minimum: 50 Ryan O'Hearn 12.416666666666666
NOTE:
Columns in the Battings.csv file are:
player id,year,stint,team,league id,games played,at bats,runs,hits,2nd base hits,3rd base hits,homeruns,runs batted in,stolen base,caught stealing,walk,strikeout,intentional walk,hit by pitch,sacrificial bunt,sacrificial fly,ground into double play
If you're having issues with verifying your numbers are correct, I recommend downloading the files and trimming them down significantly to work with a smaller data set.