Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

basket. (8) 23. In a basketball shooting contest, each participant is given 10 attempts at making a Write Python code to store the successful attempts

image text in transcribed
basket. (8) 23. In a basketball shooting contest, each participant is given 10 attempts at making a Write Python code to store the successful attempts from 5 players where the user is prompted to enter the number of baskets made by each player. Calculate each player's average score (called the shooting percentage) and calculate the average score across all players. Print out this percentage. Lastly, print out the player numbers of all players whose shooting percentage is above the average. A sample run might look as follows, where text that is bold is user input: How many baskets were made by player 1? 6 2 How many baskets were made by player 2? 8 co How many baskets were made by player 3? 5 How many baskets were made by player 4? 7 How many baskets were made by player 5? 8 7 The average shooting percentage is: 68%, 9 Players above the average : 10 > player 2 11 > player 4 12 > player 5

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions