Question
The NFL rates its passers for statistical purposes against a fixed performance standard based on statistical achievements of all qualified pro passers since 1960. The
The NFL rates its passers for statistical purposes against a fixed performance standard based on statistical achievements of all qualified pro passers since 1960. The current system replaced one that rated passers in relation to their position in a total group based on various criteria.
The current system, which was adopted in 1973, removes inequities that existed in the former method and, at the same time, provides a means of comparing passing performances from one season to the next.
It is important to remember that the system is used to rate passers, not quarterbacks. Statistics do not reflect leadership, play-calling, and other intangible factors that go into making a successful professional quarterback.
Four categories are used as a basis for compiling a rating:
1. Percentage of completions per attempt 2. Average yards gained per attempt 3. Percentage of touchdown passes per attempt 4. Percentage of interceptions per attempt
The average standard, is 1.000. The bottom is .000. To earn a 2.000 rating, a passer must perform at exceptional levels, i.e., 70 percent in completions, 10 percent in touchdowns, 1.5 percent in interceptions, and 11 yards average gain per pass attempt. The maximum a passer can receive in any category is 2.375 (see examples at the end of the program).
In order to make the rating more understandable, the point rating is then converted into a scale of 100. In rare cases, where statistical performance has been superior, it is possible for a passer to surpass a 100 rating.
For example, take Steve Young's record-setting season in 1994 when he completed 324 of 461 passes for 3,969 yards, 35 touchdowns, and 10 interceptions.
The four calculations would be:
Percentage of Completions ? 324 of 461 is 70.28 percent. Subtract 30 from the completion percentage (40.28) and multiply the result by 0.05. The result is a point rating of 2.014. Note: If the result is less than zero (Comp. Pct. less than 30.0), award zero points. If the results are greater than 2.375 (Comp. Pct. greater than 77.5), award 2.375.
Average Yards Gained Per Attempt ? 3,969 yards divided by 461 attempts is 8.61. Subtract three yards from yards-per-attempt (5.61) and multiply the result by 0.25. The result is 1.403. Note: If the result is less than zero (yards per attempt less than 3.0), award zero points. If the result is greater than 2.375 (yards per attempt greater than 12.5), award 2.375 points.
Percentage of Touchdown Passes ? 35 touchdowns in 461 attempts is 7.59 percent. Multiply the touchdown percentage by 0.2. The result is 1.518. Note: If the result is greater than 2.375 (touchdown percentage greater than 11.875), award 2.375.
Percentage of Interceptions ? 10 interceptions in 461 attempts is 2.17 percent. Multiply the interception percentage by 0.25 (0.542) and subtract the number from 2.375. The result is 1.833. Note: If the result is less than zero (interception percentage greater than 9.5), award zero points.
The sum of the four steps is (2.014 + 1.403 + 1.518 + 1.833) 6.768. The sum is then divided by six (1.128) and multiplied by 100. In this case, the result is 112.8. This same formula can be used to determine a passer rating for any player who attempts at least one pass.
In this program you are asked to compute the quarterback rating for an NFL quarterback. You will need to use methods for each of the Processing items and the output of your information. You do not have to have a method for the inputting of your data. Have your main call the methods and control the program.
? ? ? ? ? ? Input and output should be done with Dialog and Message boxes. Your program should be well documented internally and externally.
Trivia: To gain a 2.375 in completion percentage, a passer would have to complete 77.5 percent of his passes. The NFL record is 70.55 by Ken Anderson (Cincinnati, 1982). To earn a 2.375 in percentage of touchdowns, a passer would have to achieve a percentage of 11.9. The record is 13.9 by Sid Luckman (Chicago, 1943). To gain 2.375 in percentage of interceptions, a passer would have to go the entire season without an interception. The 2.375 figure in average yards is 12.50, compared with the NFL record of 11.17 by Tommy O'Connell (Cleveland, 1957).
NOTE:
this not the answer that im looking for. it wont work.
Input: Name Completed Attempts Yards Touchdowns Interceptions Processing: Rating Percent Completion Ave Yards Gained Percent of TD's Percent of Int's String Integer Integer Integer Integer Integer Real Real Real Real Real Quarterbacks Name The number of completed passes The number of pass attempts The number of receiving yards The number of passing TD's The number of passing Interceptions Total of the following four See above 66 Output: All data the user inputs, calculated variables from Processing and the Quarterbacks rating. You may retrieve and display the data any way you would like. public class rating { public String Name; public double completed,attempts,yards, touchdowns, interceptions; double rating,percent_comp,avg_yards,per_td,per_int; public void calc() { percent_comp=((((completed/attempts)*100)-30)*0.05); if(percent_comp 2.375) percent_comp=2.375; avg_yards=(((yards/attempts)-3)*0.25); if(avg_yards 2.375) avg_yards=2.375; per_td=(((touchdowns/attempts)*100)*0.2); if(per_td>2.375) per_td=2.375; per_int=((((interceptions/attempts)*100)*0.25)-2.375)*-1; if(per_int =1) rating=(((percent_comp+avg_yards+per_td+per_int)/6)*100); else rating=0; } public void display() { System.out.println("Name : "+Name); System.out.println("Completed passes : "+completed); System.out.println("Attempted passes : "+attempts); System.out.println("Yards : "+yards); System.out.println("Touchdowns : "+touchdowns); System.out.println("Interceptions : "+interceptions); System.out.println("Percent completion : "+percent_comp); System.out.println("Avg Yards Gained : "+avg_yards); System.out.println("Percent of TD : "+per_td);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Ans I tried this code it worked THIS IS MY PROGRAM import javautil import javaxswing import javatextDecimalFormat public class Ch7Assign1 public static void mainString args Input the Data Using separa...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