Guided Inquiry 18: zyBook Ch. 6.11–6.18 + specified exercises
- Due Mar 30, 2020 by 9am
- Points 1
- Submitting a file upload
Overview
The purpose of this guided inquiry is to gain more practice defining and using custom functions in C++.
Learning Objectives
Basic learning objectives
By the end of this Guided Inquiry, you should be able to:
- describe what a global variable is
- demonstrate how to specify a default parameter value in a function signature
- describe what function overloading is
- explain what the pre-processor is and how it handles library includes
Advanced learning objectives
By the end of our next class meeting, you should be able to:
- explain the proper use of global variables
- provide an example of a side effect when calling a function
- compile a multi-file C++ project
- define multiple functions with the same name, but different parameters
Resources
Reference zyBook sections 6.11–6.18 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 18" 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 each section 6.11–6.18 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 6.12.1: Return number of pennies in total
- Challenge 6.13.1: Overload salutation printing
- Challenge 6.13.2: Convert a height into inches
- zyLab 6.19: Miles to track laps
- post one or more questions to the class Piazza board with the "gi 18" 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 2 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 6.12.1
|
|
||
You either passed at least one test or uploaded a screenshot showing your final, reasonable attempt at Challenge Activity 6.13.1.
|
|
||
You either passed at least one test or uploaded a screenshot showing your final, reasonable attempt at Challenge Activity 6.13.2.
|
|
||
You submitted (in zyBooks) a reasonable attempt at at zyLab 6.19.
|
|
||
|