APCS-P ModuleFiveLessonFiveActivityGuide - TraversalsExplore_Investigate

.docx

School

Trident Technical College *

*We aren’t endorsed by this school

Course

12

Subject

Computer Science

Date

Apr 3, 2024

Type

docx

Pages

2

Uploaded by EarlIce11831

Report
Google Doc Access Directions: Please click on File in the upper left corner.  If you are working on a Chromebook or Google Docs, choose the Make a copy option and save a copy of the document to your Google Drive.   If not, choose the Download as option and then the Microsoft Word (.docx) option to download an editable copy of the document to your computer. Module Five Lesson FiveTraversals Explore/Investigate Activity Guide Navigate to Transversals Investigate on code.org Level 1 Read through the entire code 1. How does average() (lines 32-38) work? a. What list does it use? How is it traversed using a for loop?(5 points) 2. How does slow() (lines 40-48) work? a. What list does it use? How is it traversed using a for loop?(5 points) 3. How does fast() (lines 50-58) work? a. What list does it use? How is it traversed using a for loop?(5 points) 4. How does numberedListDisplay() (lines 60-66) work? a. What list does it use? How is it traversed using a for loop?(5 points) Create a function that adds together the total time of every element in the list. console.log the result. Call this function in the updateScreen() function. 5. Copy and Paste the code here(15 points): ____________________________________________________________ Level 2 Open the data tab. 1. What does it do?(5 points) 2. How does it work?(5 points)
3. What information is available? (5 points) 4. What can you change?(5 points) What can't you change?(5 points) Investigate a few different datasets. Rewatch the video in Level 3 or click here ____________________________________________________________ Level 4 1. What are the names of the five lists in this program?(5 points) 2. On what lines of code are the lists created?(5 points) 3. On what lines of code are the lists filled?(5 points) 4. How are these lists filled?(5 points) 5. Open up the data tab and click to view the dogs table. What columns does this app use?(5 points) 6. Look at the filter function. On what lines are the filtered lists reset to blank lists?(5 points) 7. What condition is being checked to determine if an element belongs in a filtered list?(5 points) 8. Explain how you would filter the dog dataset using traversal to have a filtered list of dogs who live long lives.(5 points)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help