Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have only been able to pull up 19 random schools from the list of 5000 but I am stuck for everything else. Objectives: The

image text in transcribed

image text in transcribedI have only been able to pull up 19 random schools from the list of 5000 but I am stuck for everything else.

Objectives: The software testing process (i.e., the BBT) consumes large amounts of data. Creating the test data is a crucial part of the testing process especially for new systems which are not in use yet. This assignment will give you an opportunity to practice creating representative test data. After completing this assignment, students will be able to: . Create random data from a given set of parameters . Create a large number of test cases to tesll possibilities Write a C++ program to process the data as though it were collected from a real situation. . This assignment will be submitted into two parts (Part-A and Part-B) a separate Code::Blocks project is required for each part. Problem description: A statewide high school soccer league needs a new system for tracking teams and recording their rankings. Assume there are 5000 high schools in the state (in reality, California has the most high schools in the U.S. at 4500), each with a unique 6 digit number ID, and a name of random length(8- 16) and char combination. For each school a team wl have between 12 and 25 players, including alternates. Each player has an ability level between 1 and 50, and the mean ability level of a team's players will be the team's mean ability score. Each team plays against 19 other teams during a season, playing against each team twice, for a total of 38 matches. Wins and losses are tracked. At the end of the season the top 100 teams are invited to a State Tournament. League administrators want to see the results of the Season as well as statewide statistics for total number of players in the league and average number of players per team. Part-A Write a C++ program to generate the team data file "stateTeams.txt". Each line in is file represents a team record, with each element separated by a space which includes the: teamID, nameofSchool, numberofPlayers, MeanAbilityScore, MedianAbilityScore As shown below for one team: 183546, ajrhsyfb high school, 14, 8.5, 7.5, The record above is just an example of one team, remember there are 5000 teams. Please note that the team ID is a unique 8 digit number. You should use a random number generator to generate a unique ID for each team. You must randomly generate the number of players and the ability score for each player on a team, then set the average player ability score for each team as the MeanAbilityScore. On the same line as the team data, you will need to output the team's win loss record. Losses will be represented by a negative number, the number of points lost by, between -6 and -1. Wins will be positive numbers between 1 and 6. There will be 19 randomly generated match records listed on the same line in the "stateTeams.txt" as the team's data. The win+loss scores will be skewed by the team's ability level A team with a lower ability level should have more losses than a team with a higher ability level. To do this, take the following approach Compare the current team to a 19 random teams from the list. This will require generating the teams first, then comparing a team's mean ability score to other teams from the list to gencrate wins+losses. Each team will play 19 teams twice, for a total of 38 matches. To eliminate ties, if the teams have the same mean ability score, compare the median score Higher ability will determine the winner Lower ability the loser The number of points won or lost by is randomly generated. A line of output should look like this 182346, ajrhsyfb, 14, 8.5, 7.5, -1 2 -1 -4 1 -2 3-1-3 4 2-3 Continuing all the way to 38 matches. Objectives: The software testing process (i.e., the BBT) consumes large amounts of data. Creating the test data is a crucial part of the testing process especially for new systems which are not in use yet. This assignment will give you an opportunity to practice creating representative test data. After completing this assignment, students will be able to: . Create random data from a given set of parameters . Create a large number of test cases to tesll possibilities Write a C++ program to process the data as though it were collected from a real situation. . This assignment will be submitted into two parts (Part-A and Part-B) a separate Code::Blocks project is required for each part. Problem description: A statewide high school soccer league needs a new system for tracking teams and recording their rankings. Assume there are 5000 high schools in the state (in reality, California has the most high schools in the U.S. at 4500), each with a unique 6 digit number ID, and a name of random length(8- 16) and char combination. For each school a team wl have between 12 and 25 players, including alternates. Each player has an ability level between 1 and 50, and the mean ability level of a team's players will be the team's mean ability score. Each team plays against 19 other teams during a season, playing against each team twice, for a total of 38 matches. Wins and losses are tracked. At the end of the season the top 100 teams are invited to a State Tournament. League administrators want to see the results of the Season as well as statewide statistics for total number of players in the league and average number of players per team. Part-A Write a C++ program to generate the team data file "stateTeams.txt". Each line in is file represents a team record, with each element separated by a space which includes the: teamID, nameofSchool, numberofPlayers, MeanAbilityScore, MedianAbilityScore As shown below for one team: 183546, ajrhsyfb high school, 14, 8.5, 7.5, The record above is just an example of one team, remember there are 5000 teams. Please note that the team ID is a unique 8 digit number. You should use a random number generator to generate a unique ID for each team. You must randomly generate the number of players and the ability score for each player on a team, then set the average player ability score for each team as the MeanAbilityScore. On the same line as the team data, you will need to output the team's win loss record. Losses will be represented by a negative number, the number of points lost by, between -6 and -1. Wins will be positive numbers between 1 and 6. There will be 19 randomly generated match records listed on the same line in the "stateTeams.txt" as the team's data. The win+loss scores will be skewed by the team's ability level A team with a lower ability level should have more losses than a team with a higher ability level. To do this, take the following approach Compare the current team to a 19 random teams from the list. This will require generating the teams first, then comparing a team's mean ability score to other teams from the list to gencrate wins+losses. Each team will play 19 teams twice, for a total of 38 matches. To eliminate ties, if the teams have the same mean ability score, compare the median score Higher ability will determine the winner Lower ability the loser The number of points won or lost by is randomly generated. A line of output should look like this 182346, ajrhsyfb, 14, 8.5, 7.5, -1 2 -1 -4 1 -2 3-1-3 4 2-3 Continuing all the way to 38 matches

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

More Books

Students also viewed these Databases questions

Question

Describe the seven standard parts of a letter.

Answered: 1 week ago

Question

Explain how to develop effective Internet-based messages.

Answered: 1 week ago

Question

Identify the advantages and disadvantages of written messages.

Answered: 1 week ago