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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
The width of a piece of rectangular land is 5m shorter rhan 1/3 of its length .find the width of the land if the length is 60m,150m.
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
Someone with this coz i don’t really know what i can choose, just pick whatever u want. homework - you need to choose a website that you like or use frequently. you must visit the website and discuss 6 different features/parts/aspects of the website that you think makes it good. (100 words)
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 23.06.2019 06:10
The head restraint should be adjusted so that it reaches a.the top of your ears b.the base of your skull c.the top of the head
Answers: 1
You know the right answer?
In the nfl, the quarterback is judged based on his throwing statistics: pass completions, pass atte...
Questions
question
Mathematics, 22.07.2019 15:30
question
History, 22.07.2019 15:30
question
Mathematics, 22.07.2019 15:30
Questions on the website: 13722362