Guided Inquiry 19: zyBook Ch. 16.8 + specified exercises
- Due Apr 1, 2020 by 9am
- Points 1
- Submitting a file upload
- Available after Mar 30, 2020 at 9am
Overview
The purpose of this guided inquiry is to learn about passing arrays as parameters to functions.
Learning Objectives
Basic learning objectives
By the end of this Guided Inquiry, you should be able to:
- write a signature for a function that takes an array parameter
- write a signature for a function that takes a multi-dimensional array as a parameter
Advanced learning objectives
By the end of our next class meeting, you should be able to:
- correctly predict the outcome of passing an array to a function that makes modifications to the array
- correctly predict the output of passing a multi-dimensional array to a function
- define functions that modify 1D and 2D arrays and their attributes
Resources
Reference zyBook section 16.8 and watch the video below as needed to complete the specified exercises. You may work with others on the exercises listed below. If you have questions, please talk with a classmate or post your question to Piazza under the "gi 19" tag.
Using 2D arrays with functions
Links to an external site.
Exercises
Attempt the following. Spend no more than 20 minutes on a challenge activity or lab (unless you want to).
- complete at least 80% of the Participation Activities in section 16.8 of the zyBook
- complete the following Challenge Activities/zyLabs—for every challenge activity you cannot pass at least one test for, please take a screen shot of your final attempt after 20 minutes and submit that here (make sure your photo includes the challenge number)
- Challenge 16.8.1: Modify an array parameter
- zyLab 16.25 Function to print an array
- zyLab 16.26 Function to read data into an array
- zyLab 16.28 Print table function for 2D arrays
- post one or more questions to the class Piazza board with the "gi 19" tag (if there's already a post for a question you had, there's not need to add another one; feel free to post anonymously)—please include specific questions rather than just the number of the challenges you want to see done.
Rubric
Keep in mind that 5 students have already been assessed using this rubric. Changing it will affect their evaluations.
Criteria | Ratings | ||
---|---|---|---|
You engaged with 80% of the Participation Activities in each of the specified zyBook sections.
|
|
||
You either passed at least one test or uploaded a screenshot showing your final, reasonable attempt at Challenge Activity 16.18
|
|
||
You submitted (in zyBooks) a reasonable attempt at at zyLab 16.25.
|
|
||
You submitted (in zyBooks) a reasonable attempt at at zyLab 16.26.
|
|
||
You submitted (in zyBooks) a reasonable attempt at at zyLab 16.28.
|
|
||
|