Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am taking advanced python class, but I have no idea how to solve these questions. Can someone help me solving these questions...? Please solve

I am taking advanced python class, but I have no idea how to solve these questions. Can someone help me solving these questions...? Please solve number 1-4 by generating python code
image text in transcribed
image text in transcribed
image text in transcribed
Diving is judged and scored by 7 judges. The scoring elements of the referee are technical movements and aesthetic senses such as run-up, stability, jumping height, space posture, entry posture, angle, etc., and they are scored by comprehensively observing them. 0 points for complete failure or change of event, 0.5 to 2 points for incomplete, 2.5 to 4.5 points for insufficient, 5 to 6 points for satisfactory, 6.5 to 8 points for good, 8.5 to 10 for excellent point. In diving competitions, the maximum number of midair turns is 3 and a half, and the maximum number of twists is 2 and a half. Events are determined by the combination of this and the diving type. Since there are difficult and relatively easy events depending on the event, it is unfair to score them equally, so the International Swimming Federation sets a coefficient called the difficulty rate according to the difficulty and ease of each event. This is multiplied by the rating of each item to calculate the score. The difficulty rate ranges from a minimum of 1.1 to a maximum of 2.9. Assuming that 7 judges scored 7 points, 8 points, 7 points, 7.5 points, 8 points, 7.5 points, 7.5 points, one low point 7 point and one high point 8 point are discarded and the remaining 5 points are added. (7+7.5+8+7.5+7.5=37.5) Then it is multiplied by the difficulty rate. If the difficulty rate was 1.7, then the final score can be calculated by 37.51.7=63.75. 2. Diving Score Board Three players finished their diving and the scores from referees are given in the table below. (1) (5Pts) Calculate the total score manually for each player based on the given information. Who is a winner? (2) (5Pts) Using Python, create a list for each player which contains all the scores from the referees. Also, create a variable for a difficulty rate for each player. (3) (5Pts) Using Python, calculate the total score for each player based on the given information. (2) (5Pts) Using Python, create a list for each player which contains all the scores from the referees. Also, create a variable for a difficulty rate for each player. (3) (5Pts) Using Python, calculate the total score for each player based on the given information. (4) (10Pts) Write your code to display the name of a winner and his score. You should let your Python code decide the name of a winner and the score from the list. Hints 1. i=Score. index(max(Score)) will give you the index for the max value in the list. 2. "\%.2f" \%Score[i] will display the score with two decimal places

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

Given f(x) = x+3x-1 x+1 3 find all x such that f(x) = 5.

Answered: 1 week ago