Guided Inquiry 21: zyBook Ch. 16.12 + specified exercises
- Due Apr 8, 2020 by 9am
- Points 1
- Submitting a file upload
- Available after Apr 6, 2020 at 9am
Overview
The purpose of this guided inquiry is to gain more practice with structs and learn how to use structs with functions.
Learning Objectives
Basic learning objectives
By the end of this Guided Inquiry, you should be able to:
- specify a struct instances as a parameter to a function and use it within the function definition
- pass a struct instance as an argument to a function
Advanced learning objectives
By the end of our next class meeting, you should be able to:
- explain the advantage of using structs over variables when using functions
- implement a function that modifies the data within a struct (pass by reference)
Resources
Reference zyBook section 16.12 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 21" tag.
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.12 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.12.1: Enter the output of the struct and function
- Challenge 16.12.2: Structs and functions
- post one or more questions to the class Piazza board with the "gi 21" 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 1 student has already been assessed using this rubric. Changing it will affect their evaluation.
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.12.1
|
|
||
You either passed at least one test or uploaded a screenshot showing your final, reasonable attempt at Challenge Activity 16.12.2.
|
|
||
|