Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am having a hard time setting the program up to randomized the positions for the innings. C++ BASEBALL LINEUP PROJECT Create a baseball lineup
I am having a hard time setting the program up to randomized the positions for the innings.
C++ BASEBALL LINEUP PROJECT Create a baseball lineup for a PONY baseball team User Requirements A manager of a PONY (Protect Our Nation's Youth) baseball team has hired you to design a program that creates a baseball lineup and position assignment. The lineup (i.e., the batting order from 1" to last) will be based on the batting average of each player. For example, if Joshua has an average of 692 and Jackson has an average of 459, Joshua will be placed first in the lineup, followed by Jackson In terms of the position assignment (i.e., Joshua plays 15tbase in inning 1, 3"d base in inning 2, center field in inning 3, etc.) your program must assign the field positions for each defensive player in accordance to the PONY Shetland rules stated below The line-up should include batting order and player's defensive positions for each of the five innings Each team shall play all players in the field in defensive positions. Additional players, (short fielders), shall be positioned in the outfield no closer than 20 feet to the baseline when the ball is hit and will be considered outfielders Each player must be scheduled to play an infield position at least one (1) inning. Catcher will be considered an infield position. A player may only be scheduled to play catcher a maximum of one (1) inning per game. No player may play a second inning of infield until every other player has played one inning of infield A player cannot play the same defensive position for more than one (1) inning per game A player can only sit out one (1) inning per game 1. 2. 3. 4. 5. Enter 12 player names: What is player 's name: Jackson What is player 2's name: Ben What is player 3's name: Harper What is player 4' s name: Mason What is player 5's name: Sean What is player 6's name: Robert What is player 7's name: Hayden What is player 8's name: James What is player 9's name: Luke What is player 10' s name: Ryan What is player 11' s name: Grant C++ BASEBALL LINEUP PROJECT Create a baseball lineup for a PONY baseball team User Requirements A manager of a PONY (Protect Our Nation's Youth) baseball team has hired you to design a program that creates a baseball lineup and position assignment. The lineup (i.e., the batting order from 1" to last) will be based on the batting average of each player. For example, if Joshua has an average of 692 and Jackson has an average of 459, Joshua will be placed first in the lineup, followed by Jackson In terms of the position assignment (i.e., Joshua plays 15tbase in inning 1, 3"d base in inning 2, center field in inning 3, etc.) your program must assign the field positions for each defensive player in accordance to the PONY Shetland rules stated below The line-up should include batting order and player's defensive positions for each of the five innings Each team shall play all players in the field in defensive positions. Additional players, (short fielders), shall be positioned in the outfield no closer than 20 feet to the baseline when the ball is hit and will be considered outfielders Each player must be scheduled to play an infield position at least one (1) inning. Catcher will be considered an infield position. A player may only be scheduled to play catcher a maximum of one (1) inning per game. No player may play a second inning of infield until every other player has played one inning of infield A player cannot play the same defensive position for more than one (1) inning per game A player can only sit out one (1) inning per game 1. 2. 3. 4. 5. Enter 12 player names: What is player 's name: Jackson What is player 2's name: Ben What is player 3's name: Harper What is player 4' s name: Mason What is player 5's name: Sean What is player 6's name: Robert What is player 7's name: Hayden What is player 8's name: James What is player 9's name: Luke What is player 10' s name: Ryan What is player 11' s name: GrantStep 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