Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I No Spac. Heading 1 1 Normal Heading 2 Paragraph Styles Create a C++ Program that does the following Create a C++ prograrm to simulate

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
I No Spac. Heading 1 1 Normal Heading 2 Paragraph Styles Create a C++ Program that does the following Create a C++ prograrm to simulate a wrestling Season. It will indude 32 different tearns, 8 of which will be in a single league. The season will have a number of dual meets (team vs team) dates, and 3 open tournaments and 1 league tournament. The open tournaments will have no more than 2 league tearns in them. The dual meet season will consist of 16 meets but during those matches, every league team MUST compete against every other league team. Wrestlers have a id number, teams have an id number as well (100, 200 through 3200) Wrestlers in team 100 would be 101, 102.etc. The total number of wrestlers will vary per team. Wrestlers also have a ability score mean = 100, std. div = 15. Each will also have a Boolean value "injured" by default will be set to false. Each wrestler's weight will be determined randomly with a mean of 152 and a standard deviation of 27. Wrestlers also have a win loss record. Not only the total wins and losses but the ID numbers of those they have lost to. A wrestler's weight determines their lowest weight class they can wrestie up by 1 weight dass + 1 pound from their current weight. Ex: a wrestier weighs 129 pounds therefore the 132 weight class they are allowed to be placed in the 132, 138 but to wrestle in the 145 yt class they would have had to weigh at least 133. Current weight classes are: 106, 113, 120, 126, 132, 138, 145, 152, 160, 170, 182, 195, 220 and 285. The minimum weight for 106 is 87 pounds, for 113 the minimum is 88. A team may have multiple people for one weight class while missing someone at another. The sequence of events: Create the teams Create the schedule 4 matches then a tournament 4 matches then a second tournament 4 matches then the third tournament 4 matches then the league tournament with teams # 100 through 800. Bout resolution: Wrestler 214 vs 516 214 ability score of 105 516 has an ability score of 112 214 performs a random number with a mean of 105 std div of 15 > 120 516 performs a random number with a mean of 112 std div of 15 > 116 Wrestler 214 is victorious and the difference of 4 scores 3 team points (decision). Dual meet team scores: 3 points Win by 1 to 7 Win by 8 to 14 > 4 points Win by 15 to 19 5 points (technical fall) Win by 20+ > 6 points win by fall (pin) After the bout is over a random number 1 to 100 is generated, if it is a 1 then one wrestler is chosen randomly to be injured with a duration of 1 to 6 weeks. Tournaments: Tournament weeks 5, 10 and 15, open tournaments with random teams but no more than 2 league teams participating. 8 teams per tournament. AaBbo BIU-ab x, xA A T Nor Font Paragraph Wresting Simulation Development Plan 1 0ejects 1Wrestlers dnum Wie record (list of id qunsthey have defeated) R Lass record (int) M Ability score (mean 100, std div 15) V. Weight v. Bool inired b. Bout 2 wrestlers Lor wrestlers pointers ? I Winner and Loser EWeight class Bout number V. In tournaments: victor gpes to bout, loser goes to bbut E. Bracket (in tournament) I Bout R14 Int weight class d. Tournament i Brackets 14 8 teams TTeam scores N Int id numbers: Medalists (143) e Match (team vs. team i 14 bouts, i per weight class Team scores (2) 2 Data Structures 32 team acay b. In a team unknown number of wrestiers An array of weight classes, each weight class based on priority queue uf wrestiers injary ist of westiers 1 Algerithi Team creatioe utility b Master scheduler Seeding agoritherfer taurnairnents d. Match algarithm E Toamarmentarhm Bout algorith abiley on modet for arastit out uf weight Develeameat Plan WinteresranIE weghts dun ablay sore DELL Styles I. Create a yrestler pointers for teams to use. b. Team of wrestlers (mean = 28, std div of 5) c. One bout, wrestler vs. wrestler d. Match, 14 bouts in 14 weight classes e. Toumament. f. Master scheduler done in class %3D i. During match weeks, what team vs. what team ii. During tournament weeks, what 8 teams are in each trauKRAMEnt. I No Spac. Heading 1 1 Normal Heading 2 Paragraph Styles Create a C++ Program that does the following Create a C++ prograrm to simulate a wrestling Season. It will indude 32 different tearns, 8 of which will be in a single league. The season will have a number of dual meets (team vs team) dates, and 3 open tournaments and 1 league tournament. The open tournaments will have no more than 2 league tearns in them. The dual meet season will consist of 16 meets but during those matches, every league team MUST compete against every other league team. Wrestlers have a id number, teams have an id number as well (100, 200 through 3200) Wrestlers in team 100 would be 101, 102.etc. The total number of wrestlers will vary per team. Wrestlers also have a ability score mean = 100, std. div = 15. Each will also have a Boolean value "injured" by default will be set to false. Each wrestler's weight will be determined randomly with a mean of 152 and a standard deviation of 27. Wrestlers also have a win loss record. Not only the total wins and losses but the ID numbers of those they have lost to. A wrestler's weight determines their lowest weight class they can wrestie up by 1 weight dass + 1 pound from their current weight. Ex: a wrestier weighs 129 pounds therefore the 132 weight class they are allowed to be placed in the 132, 138 but to wrestle in the 145 yt class they would have had to weigh at least 133. Current weight classes are: 106, 113, 120, 126, 132, 138, 145, 152, 160, 170, 182, 195, 220 and 285. The minimum weight for 106 is 87 pounds, for 113 the minimum is 88. A team may have multiple people for one weight class while missing someone at another. The sequence of events: Create the teams Create the schedule 4 matches then a tournament 4 matches then a second tournament 4 matches then the third tournament 4 matches then the league tournament with teams # 100 through 800. Bout resolution: Wrestler 214 vs 516 214 ability score of 105 516 has an ability score of 112 214 performs a random number with a mean of 105 std div of 15 > 120 516 performs a random number with a mean of 112 std div of 15 > 116 Wrestler 214 is victorious and the difference of 4 scores 3 team points (decision). Dual meet team scores: 3 points Win by 1 to 7 Win by 8 to 14 > 4 points Win by 15 to 19 5 points (technical fall) Win by 20+ > 6 points win by fall (pin) After the bout is over a random number 1 to 100 is generated, if it is a 1 then one wrestler is chosen randomly to be injured with a duration of 1 to 6 weeks. Tournaments: Tournament weeks 5, 10 and 15, open tournaments with random teams but no more than 2 league teams participating. 8 teams per tournament. AaBbo BIU-ab x, xA A T Nor Font Paragraph Wresting Simulation Development Plan 1 0ejects 1Wrestlers dnum Wie record (list of id qunsthey have defeated) R Lass record (int) M Ability score (mean 100, std div 15) V. Weight v. Bool inired b. Bout 2 wrestlers Lor wrestlers pointers ? I Winner and Loser EWeight class Bout number V. In tournaments: victor gpes to bout, loser goes to bbut E. Bracket (in tournament) I Bout R14 Int weight class d. Tournament i Brackets 14 8 teams TTeam scores N Int id numbers: Medalists (143) e Match (team vs. team i 14 bouts, i per weight class Team scores (2) 2 Data Structures 32 team acay b. In a team unknown number of wrestiers An array of weight classes, each weight class based on priority queue uf wrestiers injary ist of westiers 1 Algerithi Team creatioe utility b Master scheduler Seeding agoritherfer taurnairnents d. Match algarithm E Toamarmentarhm Bout algorith abiley on modet for arastit out uf weight Develeameat Plan WinteresranIE weghts dun ablay sore DELL Styles I. Create a yrestler pointers for teams to use. b. Team of wrestlers (mean = 28, std div of 5) c. One bout, wrestler vs. wrestler d. Match, 14 bouts in 14 weight classes e. Toumament. f. Master scheduler done in class %3D i. During match weeks, what team vs. what team ii. During tournament weeks, what 8 teams are in each trauKRAMEnt

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

Students also viewed these Databases questions