Project: Football Passer Rating (Revisited)
The passer rating formula provides one metric that can be used to compare the performance of quarterbacks. It is based on the number of completions, touchdown passes, interceptions and total passing yards. Write a program that prompts for the number of completed passes, touchdown passes, interceptions, total passing yards, the total number of attempted passes and whether the NFL or NCAA passer rating should be displayed. The program should call one of two functions to compute the NFL or NCAA passer rating. Print the rating to one decimal place.
See [[Passer Rating]] for the NFL and NCAA formulas.
Output
$ g++ -std=c++17 FootballPasserRating3.cpp -o FootballPasserRating3 -lfmt
$ ./FootballPasserRating3 < ../../projects/FootballPasserRating1.in1
Number of attempts: Number of completions: Number of touchdown passes: Number of interceptions: Number of passing yards: 1 for NFL or 2 for NCAA: NFL Passer rating: 112.3
$ g++ -std=c++17 FootballPasserRating3.cpp -o FootballPasserRating3 -lfmt
$ ./FootballPasserRating3 < ../../projects/FootballPasserRating2.in2
Number of attempts: Number of completions: Number of touchdown passes: Number of interceptions: Number of passing yards: 1 for NFL or 2 for NCAA: NCAA Passer rating: 199.4
Pure Programmer

