subject
Computers and Technology, 12.03.2021 15:30 dbrwnn

Football Player Information Page loadPlayersPage method:
parameters: none
purpose: This method will populate the dropdown menu to allow the user to select which player's information to view.
To handle this, you will need to iterate through the players array and do the following for each player:
1. Create an anchor tag
2. Set the href to"#", this will make sure the
3. Set the onclick to call switchPlayers method
4. Set the anchor tag's text to the player's name. anchor tag doesn't change pages (this will need to pass in the index inside the players array)
After setting all of the anchor tags, update the innerHTML of the dropdown menu. As a note, the id for the dropdown menu is player_selector.
switchPlayers (playerNum) method:
parameters:
playerNum The index of the football player in the players array.
purpose:
This method will update the the spans on the player's information pagex and calculate the average passing, rushing, and receiving yards.
Span ids:
the player's year in college
- the player's major in college
- the number of games played for Buffs p_year pmajor g_played player_img the player's photo (must set src and alt p_y r_yardsthe number of rushing yards rec yardsthe number of receiving yards ards - the number of passing yards
Calculated values:
ards - the average number of passing yards for the player's Buff career
avg_p_ avg_r_yards the average number of rushing yards for the player's Buff career
avg_rec_yards -the average number of receiving yards for the player's Buff career

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:40
Reading characters and strings from the keyboard: consider the following c++ program 1. #include 2. #include 3. using namespace std; 4. mystring1 5. 6. int main() 7. { 8. 9. string mystring1, mystring2; mychar1 10. 11. 12. char mychar1, mychar2; 13. 14. cout< < "enter a string: "; mychar2 15. 16. cin> > mystring1; // 17. cin.get(mychar1); 18. cin> > mychar2; 19. getline(cin,mystring2); mystring2 20. 21. 22. cout<
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Enzo’s balance sheet for the month of july is shown. enzo’s balance sheet (july 2013) assets liabilities cash $600 credit card $4,000 investments $500 student loan $2,500 house $120,000 mortgage $80,000 car $6,000 car loan $2,000 total $127,100 total $88,500 which expression finds enzo’s net worth?
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Print "censored" if userinput contains the word "darn", else print userinput. end with newline. ex: if userinput is "that darn cat.", then output is: censoredex: if userinput is "dang, that was scary! ", then output is: dang, that was scary! note: if the submitted code has an out-of-range access, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.#include #include using namespace std; int main() {string userinput; getline(cin, userinput); int ispresent = userinput.find("darn"); if (ispresent > 0){cout < < "censored" < < endl; /* your solution goes here */return 0; }
Answers: 3
You know the right answer?
Football Player Information Page loadPlayersPage method:
parameters: none
purpose: Th...
Questions
question
Mathematics, 06.04.2021 18:30
question
Mathematics, 06.04.2021 18:30
question
Mathematics, 06.04.2021 18:30
question
Arts, 06.04.2021 18:30
question
Mathematics, 06.04.2021 18:30
question
Mathematics, 06.04.2021 18:30
Questions on the website: 13722367