Guided Inquiry 17: zyBook Ch. 6.1–6.10 + specified exercises
- Due Mar 13, 2020 by 9am
- Points 1
- Submitting a file upload
- Available after Mar 11, 2020 at 9:45am
Overview
The purpose of this guided inquiry is to gain more practice defining and using custom functions in C++.
Learning Objectives
By the end of this Guided Inquiry, you should feel more comfortable doing the following:
- defining custom functions
- invoking custom functions
- returning a value from a function and using that values wherever the function was invoked
- passing strings and vectors to custom functions
Resources
Reference zyBook sections 6.1–6.10 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 17" tag.
Exercises
Attempt the following. Spend no more than 20 minutes on a challenge activity or lab (unless you want to).
- complete the following "Challenge Activities"—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 6.1.3: Function call with parameter: Printing formatted measurement
- Challenge 6.2.3: Function definition: Volume of a pyramid
- Challenge 6.4.2: Function with loop: Shampoo
- Challenge 6.9.3: Modify a vector parameter
- post one or more questions to the class Piazza board with the "gi 17" 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 7 students have already been assessed using this rubric. Changing it will affect their evaluations.
Criteria | Ratings | ||
---|---|---|---|
You made a reasonable attempt at Challenge Activity 6.1.3.
|
|
||
You made a reasonable attempt at Challenge Activity 6.2.3.
|
|
||
You made a reasonable attempt at Challenge Activity 6.4.2.
|
|
||
You made a reasonable attempt at Challenge Activity 6.9.3.
|
|
||
|