Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

What lessons in intervention design, does this case represent?

Answered: 1 week ago