Guided Inquiry 10: zyBook Ch. 4.7–4.13 + specified exercises
- Due Feb 24, 2020 by 9am
- Points 1
- Submitting a file upload
- Available after Feb 21, 2020 at 10am
Overview
The purpose of this reading and exercise set is to familiarize you with some of the advanced features of loops, like nesting and the break/continue keywords.
Learning Objectives
Basic learning objectives
You are responsible for learning and demonstrating proficiency in the following objectives prior to the next class meeting:
- write nested loops in C++
- explain the importance of developing programs incrementally
- describe how the break and continue keywords work inside of a loop
- explain the consequence of declaring a variable inside versus outside of a loop (scope)
- explain what enumerations (enum) are and when they are useful
Advanced learning objectives
You should demonstrate mastery of the following objectives by the end of the next class meting through the in-class activities:
- use break and continue in a program
- use the enum type in a program
- explain scoping in other contexts (e.g., in branches)
Resources
Read zyBook sections 4.7–4.13). 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 10" 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 4.7.1: Nested loops: Indent text
- Challenge 4.9.1: Simon says
- Challenge 4.11.1: Enumerations: Grocery items
- zyLab 4.14: Convert to binary (be sure to submit your solution, even if it's incomplete so I can see that you've attempted it)
- post one or more questions to the class Piazza board with the "gi 10" 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 8 students have already been assessed using this rubric. Changing it will affect their evaluations.
Criteria | Ratings | ||
---|---|---|---|
80% of Participation activities in the assigned reading completed
|
|
||
A reasonable attempt made at Challenge Activity 4.7.1
|
|
||
A reasonable attempt made at Challenge Activity 4.9.1
|
|
||
A reasonable attempt made at Challenge Activity 4.11.1
|
|
||
A reasonable attempt made at zyLab 4.14
|
|
||
|