Write a Python program which computes win/loss record, average score and average point spread of a sports team (or player) Your program must: Pick your favorite team or individual sport which has a single opponent. You will be prompting the user for the points scored by your team and their opponent for a set of games/matches - for sports with only a few games per season (like American football) the set would be the entire season. However, for a sport like baseball with 60 games per season, you may choose to use a smaller set for testing - say the 7 games for the world series. Prompt the user for the name of the team/player and use it to aid in future prompts Prompt the user for the number of games/matches played FOR EACH GAME PLAYED, prompt the user for the points of the favorite team/player and of the opposing team/player Your program must then print the following: win/loss record (how many games your team/player won and how many that team lost) the total points your favorite team/player earned the average points per game your favorite team/player earned the average "point spread" of the games (Point spread is the difference of the points scored in a game).
Write a Python program which computes win/loss record, average score and average point spread of a sports team (or player) Your program must: Pick your favorite team or individual sport which has a single opponent. You will be prompting the user for the points scored by your team and their opponent for a set of games/matches - for sports with only a few games per season (like American football) the set would be the entire season. However, for a sport like baseball with 60 games per season, you may choose to use a smaller set for testing - say the 7 games for the world series. Prompt the user for the name of the team/player and use it to aid in future prompts Prompt the user for the number of games/matches played FOR EACH GAME PLAYED, prompt the user for the points of the favorite team/player and of the opposing team/player Your program must then print the following: win/loss record (how many games your team/player won and how many that team lost) the total points your favorite team/player earned the average points per game your favorite team/player earned the average "point spread" of the games (Point spread is the difference of the points scored in a game).
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Write a Python program which computes win/loss record, average score and average point spread of a sports team (or player)
Your program must:
Pick your favorite team or individual sport which has a single opponent. You will be prompting the user for the points scored by your team and their opponent for a set of games/matches - for sports with only a few games per season (like American football) the set would be the entire season. However, for a sport like baseball with 60 games per season, you may choose to use a smaller set for testing - say the 7 games for the world series.
- Prompt the user for the name of the team/player and use it to aid in future prompts
- Prompt the user for the number of games/matches played
- FOR EACH GAME PLAYED, prompt the user for the points of the favorite team/player and of the opposing team/player
- Your program must then print the following:
- win/loss record (how many games your team/player won and how many that team lost)
- the total points your favorite team/player earned
- the average points per game your favorite team/player earned
- the average "point spread" of the games (Point spread is the difference of the points scored in a game).
Can I get an example code please in python
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education