Question: 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


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 1st 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 1t base 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 1. The line-up should include batting order and player's defensive positions for each of the five innings 2. 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. 3. . A player cannot play the same defensive position for more than one (1) inning per game. 5. A player can only sit out one (1) inning per game. Enter 12 player names: What is player l's name: Jackson What is player 2' s name: Bern What is player 3's name: Harper What is player 4's name: Mason What is player' 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 player9's name: Luke What is player 10's name: Ryan What is player ll's name: Grant What is player 12's name: Joshua Page 1 of2 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 1st 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 1t base 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 1. The line-up should include batting order and player's defensive positions for each of the five innings 2. 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. 3. . A player cannot play the same defensive position for more than one (1) inning per game. 5. A player can only sit out one (1) inning per game. Enter 12 player names: What is player l's name: Jackson What is player 2' s name: Bern What is player 3's name: Harper What is player 4's name: Mason What is player' 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 player9's name: Luke What is player 10's name: Ryan What is player ll's name: Grant What is player 12's name: Joshua Page 1 of2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
