Question

IN PYTHON: A college gives full scholarship to every player in its football team and men's...

IN PYTHON:

A college gives full scholarship to every player in its football team and men's basketball team. The coach of each team gives the name of every player to the athletic director. The athletic director needs a program to handle the names. He wants the program to tell him how many scholarships they need to give out this year. What data structure in Python is the best choice to store player names? [Note: a student who plays both sports only needs one scholarship]

A.

A list for football players and a list for basketball players

B.

A tuple for football players and a tuple for basketball players

C.

A dictionary for football players and a dictionary for basketball players

D.

A set for football players and a set for basketball players

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:- The answer of your question is D

The best suitable data structure to store the player name is is SET because set is a ordered data structure and all the entries on the data structure are unique means don't be repeated and all the entries are act as a primary key to the data structure .

List are simple array data structure so it is not a suitable data structure for your requirement.

Touple is also a simple array data structure but it can be accessed fast but touole is also not suitable

Dictionary are the unordered data structure which has two things a key and a value due to it is unordered and the key it is not suitable data structure and the entries are not unique so,

the suitable data structure is the set which has all the entries are unique which fulfill the condition of the player which play both game should have the name on the data structure only once so

Set is the suitable data structure .

Thank You Kindly rate my answer.

Add a comment
Know the answer?
Add Answer to:
IN PYTHON: A college gives full scholarship to every player in its football team and men's...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Weight Gain: College Football Player JJ is a 22-year-old male college Division I football quarterback competing...

    Weight Gain: College Football Player JJ is a 22-year-old male college Division I football quarterback competing for the team’s number one slot for starting quarterback this upcoming season. JJ is 6’ 2” in height and weighed 197 pounds (lbs) at the end of the football season. For spring ball JJ weight trains 5 days a week for 1 ½ hours each session and plays pick-up basketball most days of the week for about an hour. Reason for Nutrition Consult JJ...

  • Chapter 8 Python Case study Baseball Team Manager For this case study, you’ll use the programming...

    Chapter 8 Python Case study Baseball Team Manager For this case study, you’ll use the programming skills that you learn in Murach’s Python Programming to develop a program that helps a person manage a baseball team. This program stores the data for each player on the team, and it also lets the manager set a starting lineup for each game. After you read chapter 2, you can develop a simple program that calculates the batting average for a player. Then,...

  • Closing Case 1 Football Teams Use Virtual Reality The Problem College and professional football teams have...

    Closing Case 1 Football Teams Use Virtual Reality The Problem College and professional football teams have a unique set of problems. First and foremost, teams would like to reduce the physical wear and tear of drills and practices on their players. In the National Football League (NFL), the most recent Collective Bargaining Agreement (2011) reduced the number of off-season practices, prohibited training camp “two-a-day” practices, and limited the number of contact practices in both the preseason and the regular season....

  • Case Study Baseball Team Manager. CMSC 135 Python Chapter 7 Assignment: Use a file to save...

    Case Study Baseball Team Manager. CMSC 135 Python Chapter 7 Assignment: Use a file to save the data Update the program so it reads the player data from a file when the program starts andwrites the player data to a file anytime the data is changed What needs to be updated: Specifications Use a CSV file to store the lineup. Store the functions for writing and reading the file of players in a separate module than the rest of the...

  • Harvey Hogan was in his 31st year as Director of Athletics at Wilson College, a coeducational,...

    Harvey Hogan was in his 31st year as Director of Athletics at Wilson College, a coeducational, private liberal arts college that offered 16 sports and was a member of the Champions Intercollegiate Athletics Conference (CIAC). Mr. Hogan was proud of the fact that, although his budget was the smallest in the conference (which consisted of 10 schools), he had always operated in the black.     However, the college faced some serious financial issues in the current school year due to...

  • please answer "def turn_payouts(move_a, move_b):" in python. Notes Two players will face each other. They each...

    please answer "def turn_payouts(move_a, move_b):" in python. Notes Two players will face each other. They each decide independently to "cooperate" or "cheat". If they both cooperated, they each win two points. If they both cheated, nobody wins anything. one cheats, the cheater gets +3 and the cooperator loses a point. That wasn't very kind! One turn is defined as each player making a choice, and winning or losing some points as a result. Shared history against this player is available...

  • Could someone please help me write this in Python? If time allows, it you could include...

    Could someone please help me write this in Python? If time allows, it you could include comments for your logic that would be of great help. This problem involves writing a program to analyze historical win-loss data for a single season of Division I NCAA women's basketball teams and compute from this the win ratio for each team as well as the conference(s) with the highest average win ratio. Background Whether it's football, basketball, lacrosse, or any other number of...

  • I have this case study to solve. i want to ask which type of case study...

    I have this case study to solve. i want to ask which type of case study in this like problem, evaluation or decision? if its decision then what are the criterias and all? Stardust Petroleum Sendirian Berhad: how to inculcate the pro-active safety culture? Farzana Quoquab, Nomahaza Mahadi, Taram Satiraksa Wan Abdullah and Jihad Mohammad Coming together is a beginning; keeping together is progress; working together is success. - Henry Ford The beginning Stardust was established in 2013 as a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT