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 fieldgoals.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 or 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 SportsReference.com
Field Goals
Value Player School Season G Vacated
Glen Rice Michigan games
Elvin Hayes Houston games
Danny Manning Kansas games
Austin Carr Notre Dame games
Johnny Dawkins Duke games
Bill Bradley Princeton games
Joe Barry Carroll Purdue games
Stacey King Oklahoma games
Hal Lear Temple games
Jim McDaniels Western Kentucky 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 and 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 and 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 and
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
