Skip to content

Using any application or program with the capability of running Javascript you can calculate different stats involved in the world of sports, such as a winning percentage, the total amount of points a National Hockey League team will have/currently holds, or a baseball player's stats!

Notifications You must be signed in to change notification settings

CadenW200728/Calculator-4-Sports

Repository files navigation

WINNING PERCENTAGE: To calculate a team's winning percentage, input the amount of wins, losses, and ties they have/could have into the parentheses of their corresponding variables at the top of the program.

Once you have done that, run the program. It will display the team's record and calculated winning percentage (which will be rounded) in the console log.

TOTAL POINTS (NHL): To calculate a team's total amount of points, input the amount of wins, losses, and overtime losses they have/could have into the parentheses of their corresponding variables at the top of the program.

Once you have done that, run the program. It will display the team's record and calculated amount of points based on the record in the console log.

PITCHING CALCULATOR:

To calculate a pitcher's stats, input the amount of earned runs, total innings, played innings, walks, and hits they have/could have into the parentheses of their corresponding variables at the top of the program.

BATTING CALCULATOR:

To calculate a batter's batting average, input the amount of hits, at-bats, bases on balls (or just simply balls), and homeruns they have/could have into the parentheses of their corresponding variables at the top of the program. (NOTE: the batting calculator in particular is a bit experimental, so if you notice any errors feel free to provide feedback, thanks!)

Additionally, if you'd like access the calculator's features with no hassle, you may click on the link provided beneath the description, which will bring you to a website that contains most of the calculator's features with a user interface for convenience.

If you'd like to alternate the type of calculator on the website, press the "P" button for pitching (to calculate pitching stats), "H" button for hockey (to calculate points of a N.H.L. team), "B" for batting (to calculate batting average), and "R" for record (to calculate winning percentage)

About

Using any application or program with the capability of running Javascript you can calculate different stats involved in the world of sports, such as a winning percentage, the total amount of points a National Hockey League team will have/currently holds, or a baseball player's stats!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published