Declare a two-dimensional array with the dimensions needed to store the data for a baseball game. It must store the data of the runs, hits and errors as well as the runs made in each inning (inning) by each team up to 9 innings. The team with the highest score wins.
You must read the data values for each team and then print the data as it appears on the stadium scoreboard, taking into account each possible play that occurs in an inning. If there is a tie they go to extraining and the homeclub in the lower part will win if the visitor is below, but if the visitor exceeds the score in this situation then the visitor wins. The extrainnig will be made up to 13 innings, and if there is still a tie, make the program end with an error message indicating that the relievers are over and therefore the game is also over, which will be decided the next day with whoever scores the first run .
Comments
Leave a comment