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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!