In Programming Challenge, write a program (like the programs in this chapter) to solve the given problem. Include appropriate input prompts and annotate output.
Write a program that computes and displays the batting average for a baseball player when the user inputs the number of hits and at-bats for that player. Batting average is computed by dividing the number of hits by the number of at-bats. You will need the following variables:
Hits (an Integer) | AtBats (an Integer) | BatAvg (a Float) |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.