subject

In the nfl, the quarterback is judged based on his throwing statistics: pass completions, pass attempts, passing yards, passing touchdowns, interceptions, and quarterback rating. write a program that reads in quarterback data from a file, populate the array, and allow the user to search the quarterbacks by last name or by any of the statistics used to describe the kind of year the quarterback is having. the input file given will consist of 20 lines an each line will have the following: firstname last name completions attempts yards touchdowns interceptions separated by a space. you will need to declare the following series of parallel arrays (where qbs is a global constant with the value of 20): • string name (qbs] [2] - contains the name of the quarterback, i. e. name [i][0] stores the quarterback at index i's first name and name [i] [1] stores the quarterback at index i's last name • int passing stats (qbs] [5] - contains the completions, attempts, yards, touchdowns, and intercep- tions for each quarterback, i. e. qbstats[i][0] stores the quarterback at index i's completions, qbstats[i] [1] stores quarterback at index i's pass attempts, and so • double qbrating (qbs] - contains the quarterback rating for each quarterback, you will not read in the quarterback rating from the file, you will compute the quarterback rating for each quarterback using the following formula a = (-attempts » – 0.3) x5 attempts - 3) * 0.25 attempts ) x 20 b= ( yards touchdowns d=2.375 - interceptions attempts quarterback rating = (a +b+c+d) x 100

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:30, bargasdevon123
To insert a column without using commands in any tabs, a user can -click and then click insert column.
Answers: 3
image
Computers and Technology, 22.06.2019 18:30, lailahussain99
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
image
Computers and Technology, 22.06.2019 19:00, detrickboucicaut
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
image
Computers and Technology, 23.06.2019 22:20, andrew412603
Learning sign language is an example of a(n) learning sign language is an example of a(n)
Answers: 2
You know the right answer?
In the nfl, the quarterback is judged based on his throwing statistics: pass completions, pass atte...

Questions in other subjects:

Konu
Mathematics, 14.04.2021 07:00
Konu
Mathematics, 14.04.2021 07:00
Konu
Mathematics, 14.04.2021 07:00