subject

Score the raceintroductionsome number of teams are participating in a race. you are not told how many teams are participating but you do know that:  each team has a name, which is one of the uppercase letters a-z. no two teams have the same name, so there are a maximum number of 26 teams. each team has the same number of members. no two runners cross the finish line at the same time – i. e. there are no ties. at the end of the race we can write the results as a string of characters indicating the order in which runners crossed the finish line. for example: zzazaawe can see there were two teams: a and z. team a’s runners finished in 3rd, 5th and 6th place. team z’s runners finished in 1st, 2nd and 4th place. scoring the raceeach runner is assigned a score equal to their finishing place. in the example above team z’s runners achieved scores of 1, 2 and 4. team a’s runners scores were 3, 5, and 6 respectively. the team’s score is the sum of the members score divided by the number of people on the team. so team a’s score is (3+5+6)/3 = 14/3=4.66 and team z’s score is (1+2+4)/3=7/3=2.33the problemwrite a program to score races as described above. inputyour program will ask the user to input a string of uppercase characters indicating the outcome of a race. outputyour program will output:  the number of teams. the number of runners on a team. the names of the teams – in alphabetical order - together with the team score. the name and score of the winning team. so for the example above the program will print: there are 2 teams. each team has 3 runners. team scorea 4.66z 2.33the winning team is team z with a score of 2.33.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:10
Read the code below. what will the computer print if the input for year_variable is 1700? if year_variable == 1776: print("your answer is correct. the declaration of independence was signed in “year_variable”.") elif year_variable < 1776: compute_variable = 1776 - year_variable. print("add “compute_variable“ years to your answer for the correct answer.") elif year_variable > 1776: compute_variable = year_variable - 1776 print("subtract “compute_variable” years from your answer for the correct answer.")
Answers: 1
question
Computers and Technology, 22.06.2019 10:00
Which of the following is true of operations within a spreadsheet program’s built-in functions? a. operations within parentheses, then multiplication and division, and then addition and subtraction are computed. b. operations within parentheses, then addition and subtraction, and then multiplication and division are computed. c. multiplication and division, then addition and subtraction, and then operations within parentheses are computed. d. addition and subtraction, then multiplication and division, and then operations within parentheses are computed
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
You know the right answer?
Score the raceintroductionsome number of teams are participating in a race. you are not told how man...
Questions
question
Mathematics, 11.12.2019 02:31
question
Mathematics, 11.12.2019 02:31
question
Mathematics, 11.12.2019 02:31
question
Mathematics, 11.12.2019 02:31
question
Mathematics, 11.12.2019 02:31
Questions on the website: 13722362