Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write in python programming please QS. (25 points) in football, there is a statistic for quarterbacks called the passer rating. To calcialate the passerrating, you
write in python programming please
QS. (25 points) in football, there is a statistic for quarterbacks called the passer rating. To calcialate the passerrating, you need five inputs pass completions, pass attempts, total passing vards, touchdowns, and interceptions: Once the pass ratipg is computed from these inputs, one can vie it to determine whether a cuarterback had a mediocre, good, of great year. Wite a short program that: (A) asks the user for the five inputs and then prints the puss rating (B) determines and displays whether the quaterback had a mediocre, good, or great year. To compute the pass rating, note the following algorithrn: a) C is the "completions per attempt" times 100 minus 30 , all divided by 20 . b) Yis the "yards perattempt" minus 3, all divided by 4. c) Tis the "rouchdowns per attempt" times 20 . d) I is 2.375 minus (7interceptions perattempts" times 35) e). The pass rating is the sum of C,Y,T, and L, all divided by 6 and then multiplied by 100 . A pass rating is pooc if it is 85 or below, mediocre if above 85 , 800d if above 90 , and geat if above 95 , In your program display "poor," "mediocre," "good," or "great" based on the pass rating. Sample Output: Enter the number of pass completions: 319 Enter the number of pass attempts: 484 Enter the cotat passing yardst 4931 Enter the nuaber of touchdownst 26 Enter the nuaber of interceptionst 5. The pass rating is 103.59 Great rating. Enter the number of pass conpletions:-373 Enter the nuaber of pass attempts: 613 Enter the total passing yards: 4057 Enter the number of touchdowns 24 Enter the number of interceptions: 8 The pass rating is 35 , Be Kediocre rating. S20zo Prof Amit v Deckar MIST 3050 Business Applicatron Orwlopmen Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started