Question
Write a C# program that uses a loop to input # at bats and # of hits for each of the 9 baseball players on
Write a C# program that uses a loop to input # at bats and # of hits for each of the 9 baseball players on a team. Team name, player name, and player position will also be input.(two dimensional array) The program should then calculate and print the individual batting average and, after all 9 players have been entered, calculate and print the team batting average.
Example of inputs and Outputs Enter the Team name: (one time entry) Astros Enter the Player Name: J. James Enter the Players Position: Center Field Enter The Number of at Bats: 23 Enter the Number of Hits: 14 J.James batting average is: .608695 8 Additional players entered The batting average for the Astros is .40898866
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started