Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(use python)Tinkerbell basketball team played a game last night. The teams coach asked your help to calculate some stats about the players. You are going

(use python)Tinkerbell basketball team played a game last night. The teams coach asked your help to calculate some stats about the players. You are going to write a program that finds such stats.

The program reads data for five players. For every player, you have to ask for the following.

Ask for the player name

Ask for the number of minutes played.

Ask for the number of successful free throws (one point)

Ask for the number of successful field goal (two points) shots

Ask for the number of successful 3 points shots (three points)

Ask for the number of fouls committed by the player.

If the number of fouls is 5 then add the name of the player to a list of KickedOutPlayers (A list that includes the name of the players who left the game because they have 5 fouls).

After the program gets these data for every player, it calculates the following.

The total number of points for this player and the average Points per minute score by the player and display the result as shown in the sample run.

After you done reading all the players data, calculate and show the following.

The total number of points scored by the team. I am not going to tell you how to do that, try to figure it out by yourself.

The names of all the players whom been kicked out from the game yesterday.

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

Students also viewed these Databases questions