### (Solved) : Write Python Program Using Lists Tuples Slicing Range X Dictionary Use Command Def Built C Q35620390

**Write a python program using only Lists, Tuples,Slicing, Range (x), dictionary, DO NOT USE the command def or otherbuilt in command in python.**

PROBLEM: In professional golf tournaments, a tournament typically lasts four rounds. A player’s score is the sum of the scores in the rounds (the lower the better). It is common for all players to play the first two rounds of golf. However, only a fraction of the players are allowed to continue on to the third and fourth rounds. The way this is done is that a “cut” score is determined, and those whose scores are better (i.e. lower) than the cut are allowed to play the remainder of the tournament (they “made the cut”) while the rest do not In this case, the cut will be the median score among the golfers. You are to print out the names of golfers who made the cut (whose score was below the median), and those who did not make the cut (score above the median). Thus, about half the golfers should make the cut. Here are some details You are to write a program that 1. Reads in golfers’ names, and their first and second round scores a. Specifically, they should enter the first round score on one line, THEN the second round b. THEN the playeґs name on a third line. This should continue for an arbitrary number c. The user should indicate that they are done entering players by giving a negative scone score on another line of players for the first round – at this point, the reading-in of data should stop (WITHOUT reading a second round or player name) In practice, a common way to find the median is 1. Typically to sort the numbers from smallest to largest. 2. And THEN to find the median from there directly (either the middle element if an odd number of elements., or the average of the two middle elements if an even number of elements) NOTE: There is a simple sort routine built in to Python, but you ARE NOT TO USE IT (the built- in sort command) for this problem There are many ways to find a median. A major part of this problem is to figure out a method for finding the median, yourselves ANOTHER OPTIONS FOR FINDING MEDIAN: a. There are solutions involving just multiple loops b. There are solutions that will use more than one list, and so orn c. Also, you do not technically have to find a median you could just find a way to report both those above and those below the median You’ll be OUTPUTTING two sets of names. Be sure it is clear which is which Do this project as a team. The idea is that you should talk through the problem and develop a solution together. Be sure to use good code development, as discussed before. Show transcribed image text PROBLEM: In professional golf tournaments, a tournament typically lasts four rounds. A player’s score is the sum of the scores in the rounds (the lower the better). It is common for all players to play the first two rounds of golf. However, only a fraction of the players are allowed to continue on to the third and fourth rounds. The way this is done is that a “cut” score is determined, and those whose scores are better (i.e. lower) than the cut are allowed to play the remainder of the tournament (they “made the cut”) while the rest do not In this case, the cut will be the median score among the golfers. You are to print out the names of golfers who made the cut (whose score was below the median), and those who did not make the cut (score above the median). Thus, about half the golfers should make the cut. Here are some details You are to write a program that 1. Reads in golfers’ names, and their first and second round scores a. Specifically, they should enter the first round score on one line, THEN the second round b. THEN the playeґs name on a third line. This should continue for an arbitrary number c. The user should indicate that they are done entering players by giving a negative scone score on another line of players for the first round – at this point, the reading-in of data should stop (WITHOUT reading a second round or player name) In practice, a common way to find the median is 1. Typically to sort the numbers from smallest to largest. 2. And THEN to find the median from there directly (either the middle element if an odd number of elements., or the average of the two middle elements if an even number of elements) NOTE: There is a simple sort routine built in to Python, but you ARE NOT TO USE IT (the built- in sort command) for this problem There are many ways to find a median. A major part of this problem is to figure out a method for finding the median, yourselves ANOTHER OPTIONS FOR FINDING MEDIAN: a. There are solutions involving just multiple loops b. There are solutions that will use more than one list, and so orn

c. Also, you do not technically have to find a median you could just find a way to report both those above and those below the median You’ll be OUTPUTTING two sets of names. Be sure it is clear which is which Do this project as a team. The idea is that you should talk through the problem and develop a solution together. Be sure to use good code development, as discussed before.