Guided Inquiry 9: zyBook Ch. 4.1–4.6 + specified exercises
- Due Feb 21, 2020 by 9am
- Points 1
- Submitting a file upload
- Available after Feb 19, 2020 at 10am
Overview
The purpose of this reading and exercise set is to introduce you to loops. Loops opens up a whole world of possibilities!
Learning Objectives
Basic learning objectives
You are responsible for learning and demonstrating proficiency in the following objectives prior to the next class meeting:
- describe the benefits of loops (what advantages do they give us as programmers?)
- compare and contrast while and for loops
- write a basic while loop in C++
- write a basic for loop in C++
Advanced learning objectives
You should demonstrate mastery of the following objectives by the end of the next class meting through the in-class activities:
- refactor existing programs to use loops
- describe what a do-while loop is and how it compares to the other loops
Resources
Read zyBook sections 4.1–4.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 9" 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.2.1: Enter the output of the while loop
- Challenge 4.2.2: Basic while loop with user input
- Challenge 4.3.1: While loop with sentinel
- Challenge 4.4.1: Enter the for loop's output
- Challenge 4.5.1: For loops
- post one or more questions to the class Piazza board with the "gi 9" 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 3 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.2.1
|
|
||
A reasonable attempt made at Challenge Activity 4.2.2
|
|
||
A reasonable attempt made at Challenge Activity 4.3.1
|
|
||
A reasonable attempt made at Challenge Activity 4.4.1
|
|
||
A reasonable attempt made at Challenge Activity 4.5.1
|
|
||
|