Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help and show full solution using python How do 1 make a code for system that calculates the average athletic ability of an athelete.

Please help and show full solution using python

image text in transcribed
How do 1 make a code for system that calculates the average athletic ability of an athelete. For instance each record will have a unique athlete's name along with sports they participated in and how they did. For example, corresponding scores are two integers first integer is equal to practice scores out of 50 and the second integer is tournament scores out of 50. The problem is calculating the athlete's overall score average and display the top 3 athletes with highest scores for top score average from least to greatest including their corresponding scores. If less than 3 students print all of them. Calculating average score: Final score determined by finding average of practice and tournament scores. Average score 1s found by comparing final score to this chart Average score Final score 1.0 0-25 25-50 51-75 4.0 76-101 For instance Baseball 12 in practice, 33 in tournament final score is 12+33=45 Basketball 23 in practice, 12 in tournament final score is 23+12= 35 Final score is baseball(45)-> 2.0 and basketball(35)-> 2.0 so average score is 2+2=4 divided by 2 is 2, since since only one athlete only athlete printed Input display should display: Enter number of records: 1 Enter athlete's name: Bobby Enter number of sports: 2 Enter sports name: Baseball Enter practice score: 12 Enter tournament score: 33 Enter number of sports: 2 Enter sports name: Basketball Enter practice score: 23 Enter tournament score: 12 Output display should display: Bobby, 2.00 NOTE: Please use a function with a specific name Don't use dictionaries or external modules

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_2

Step: 3

blur-text-image_3

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

why Ensuring Confidentiality of stefan is important

Answered: 1 week ago