Question
A local baseball league has asked you to write a program for tracking scores for 4 teams. Each team played 5 games. Write a program
A local baseball league has asked you to write a program for tracking scores for 4 teams. Each team played 5 games. Write a program that asks the league official to enter the 5 scores for each team. Your program has to use arrays. You can use 4, 1-dimensional arrays, one array per team or you could use 1, 2-dimensional array where each column holds a teams scores. The program should determine which team had the highest sum total of scores. The output of the program should display all scores for each team and the team # that has the highest total sum of scores. First, describe your algorithm using pseudocode.
Translate the pseudocode into a C++ program. You must comment your program including comments at the top of the file that explains what the program does and comments for every line of code that explains what is happening for the line of code. Apply troubleshooting and testing strategies to ensure your code compiles, runs, and provides accurate results.
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