You are a chess coach. Write a program that asks how many chess players you coach...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are a chess coach. Write a program that asks how many chess players you coach and then, for each player, what their chess rating is. The highest ratings are over 2700, anything above 2000 is expert or professional, and novices have a rating below 1200. Higher scores are better. Then output the chess player number and average score of your best and worst players. Here is some sample output. User input is underlined here but won't be in your output. How many players?5 What was the rating for player #1?1800 What was the rating for player #2?1900 What was the rating for player #23?1700 What was the rating for player #4?1200 What was the rating for player #5?2100 The best player is player #25 with a rating of 2100. The worst player is player #24 with a rating of 1200. You are a chess coach. Write a program that asks how many chess players you coach and then, for each player, what their chess rating is. The highest ratings are over 2700, anything above 2000 is expert or professional, and novices have a rating below 1200. Higher scores are better. Then output the chess player number and average score of your best and worst players. Here is some sample output. User input is underlined here but won't be in your output. How many players?5 What was the rating for player #1?1800 What was the rating for player #2?1900 What was the rating for player #23?1700 What was the rating for player #4?1200 What was the rating for player #5?2100 The best player is player #25 with a rating of 2100. The worst player is player #24 with a rating of 1200.
Expert Answer:
Answer rating: 100% (QA)
def main numplayers intinputHow many players ratings for i in range1 numplayers 1 rating intinp... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
"internet radios" for streaming audio, and personal video recorders and players. Describe design and evaluation processes that could be used by a start-up company to improve the usability of such...
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Chemistry A one-electron atom is an atom with Z protons in the nucleus and one electron. For example, Z = 2 for helium and Z = 3 for lithium. Use our class discussion of the allowed radii and...
-
Show that B is a convex set with a nonempty interior.
-
The school board for the Bellevue School District has made the decision to purchase 1,350 additional Macintosh computers for computer laboratories in all its schools. Based on past experience, the...
-
Three electrons orbit a neutral 6 Li atom. How many electrons orbit a neutral 7 Li atom?
-
The following information relates to the 2017 debt and equity investment transactions of Wildcat Ltd., a publicly accountable Canadian corporation. All of the investments were acquired for trading...
-
A taxpayer receives two interest payments during the year. One is for $500 from a savings account and is reported in their name. The other payment is for $2,000 and belongs technically to someone...
-
ZIM Inc. (ZIM) is a high-technology company that develops, designs, and manufactures telecommunications equipment. ZIM was founded in Year 5 by Dr. Alex Zimmer, the former assistant head of research...
-
Formaldehyde (HCHO) is produced by partial oxidation of methanol (CH 3 OH). Several side reactions also occur, producing formic acid (HCOOH), CO, CO 2, and H 2 O. Suppose 100 kgmol/h methanol and...
-
What philosophical perspectives, such as contractualism and social contract theory, provide insights into the foundations of trustworthiness within social and political contexts?
-
How do cognitive heuristics and biases affect individuals' judgments of trustworthiness, and what strategies can be employed to mitigate their impact?
-
The Topic is: The effect of the corona virus on long-term care facilities. Discuss how this current issue relates to Life Span Psychology. Provide a deeper understanding of the topic in about ONE...
-
What is worse for the world economy: Inflation or recession? Explain how central banks might seek to combat inflation.
-
Consider a project that has a net cash flow of $ -1000, $500, $400 and $100 over zero to three. What is the NPV of this project if the appropriate discount rate is 15% ?
-
Wood Designs Company, a custom cabinet manufacturing company, is setting standard costs for one of its products. The main material is cedar wood, sold by the square foot. The current cost of cedar...
-
Match the following. Answers may be used more than once: Measurement Method A. Amortized cost B. Equity method C. Acquisition method and consolidation D. Fair value method Reporting Method 1. Less...
-
In a science museum, you may have seen a Foucault pendulum, which is used to demonstrate the rotation of the earth. In one museums pendulum, the 110 kg bob swings from a 15.8-m-long cable with an...
-
In a study designed to better understand the dynamics of walking, a subject stood with one leg at rest, and swung the other leg at various frequencies. The metabolic power expended, in watts per...
-
In a loudspeaker, an electromagnetic coil rapidly drives a paper cone back and forth, sending out sound waves. If the cone of a loudspeaker moves sinusoidally at 1.2 kHz with an amplitude of 3.5 m,...
Study smarter with the SolutionInn App