Question: This program assesses your ability to use loops, lists, decision structures, functions, and print formatting as needed. You are writing a program ( field _

This program assesses your ability to use loops, lists, decision structures, functions, and print formatting as needed.
You are writing a program (field_goals.py) to analyze players who have the most Points scored by field goals in the Mens NCAA Basketball tournaments over the years. That means the player must have made 2 or 3 point shots summing up to the points values shown in every NCAA tournament game that he played in for a given year. Here is the data from NCAA Tournament Player Records - Individual Tournament | College Basketball at Sports-Reference.com
Field Goals
Value Player School Season G Vacated
75 Glen Rice Michigan 19890 games
70 Elvin Hayes Houston 19680 games
69 Danny Manning Kansas 19880 games
68 Austin Carr Notre Dame 19700 games
66 Johnny Dawkins Duke 19860 games
65 Bill Bradley Princeton 19650 games
63 Joe Barry Carroll Purdue 19800 games
63 Stacey King Oklahoma 19880 games
63 Hal Lear Temple 19560 games
61 Jim McDaniels Western Kentucky 19710 games Yes
You begin by asking the user how many players for which they will be analyzing Field Goals. Validate the response with a loop to ensure that the value entered is between 1 and 50. Once you have a valid response, enter a for loop or counter controlled while loop to run the program.
You will ask the user to input the players name and store it in a names list. You will ask the user to input the players team and store it in a teams list. You will ask the user to input the tournament year and store it in a years list.
You will ask the user to input the Points made from Field Goals for the player which is shown in the Value column in the table shown above. Use a value returning function to validate the Points in Field Goals made between 1 and 150. The validated points will be stored in a points list.
After getting the input for all players and performing the validations required, print the items from the list.
Use a value returning function to calculate the average Points in Field Goals made for all players recorded and return it to the main function so that you can display it there.
The following functions are required although it is possible to include more functions:
A value returning function to validate the input from the Points of Field Goals made between 1 and 150.
A value returning function to calculate the average Points of Field Goals made for the players entered.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!