Guided Inquiry 15: zyBook Ch. 6.1–6.5 + specified exercises
- Due Mar 9, 2020 by 9am
- Points 1
- Submitting a file upload
- Available after Mar 6, 2020 at 9:45am
Overview
The purpose of this guided inquiry is to introduce user-defined functions. This allows you to modularize your code and reduce code duplication.
Learning Objectives
Basic learning objectives
You are responsible for learning and demonstrating proficiency in the following objectives prior to the next class meeting:
- describe what a function is (at a high level)
- explain why functions are useful
- describe the parts of a function
Advanced learning objectives
You should demonstrate mastery of the following objectives by the end of the next class meting through the in-class activities:
- describe what a function signature is
- define simple functions
- call simple functions
Resources
Read zyBook sections 6.1–6.6. 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 15" tag.
Exercises
Attempt the following. Spend no more than 20 minutes on a challenge activity or lab (unless you want to).
- carry out at least 80% of the "Participation Activities" (the orange ones) in each section of the reading
- 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.2: Basic function call
- Challenge 6.2.2: Function call in expression
- Challenge 6.4.1: Function with branch: Popcorn
- Challenge 6.5.1: Unit testing
- post one or more questions to the class Piazza board with the "gi 14" 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)
Rubric
Keep in mind that 2 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.2.
|
|
||
You made a reasonable attempt at Challenge Activity 6.2.2.
|
|
||
You made a reasonable attempt at Challenge Activity 6.4.1.
|
|
||
You made a reasonable attempt at Challenge Activity 6.5.1.
|
|
||
|