Question
I USE jGRASP TO WRITE THE JAVA CODE, NOT JAVA. I ALSO NEED THE OUTPUT TO BE DISPLAYED IN A MESSAGE/DIALOG BOX, NOT WITHIN THE
I USE jGRASP TO WRITE THE JAVA CODE, NOT JAVA. I ALSO NEED THE OUTPUT TO BE DISPLAYED IN A MESSAGE/DIALOG BOX, NOT WITHIN THE PROGRAM (NOT "println" command). THANKS!!!
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:
Name String Quarterbacks Name
Completed Integer The number of completed passes
Attempts Integer The number of pass attempts
Yards Integer The number of receiving yards
Touchdowns Integer The number of passing TDs
Interceptions Integer The number of passing Interceptions
Processing:
Rating Real Total of the following four
Percent Completion Real See above
Ave Yards Gained Real
Percent of TDs Real
Percent of Ints Real
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.
Input and output should be done with Dialog and Message boxes. Your program should be well documented internally and externally.
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