Guided Inquiry 6: zyBook Ch. 3.1–3.6 + specified exercieses
- Due Feb 9, 2020 by 10pm
- Points 1
Overview
The purpose of this reading and exercise set is to introduce you to branching in C++, which allows our programs to do different things based on the input it receives.
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 Boolean expression is
- describe what if, else if, and else statements are
- predict the output of a program that uses if-else statements
- implement simple if statements in C++
- list the equality and relational operators and explain how to use them within a Boolean expression
Advanced learning objectives
You should demonstrate mastery of the following objectives by the end of the next class meting through the in-class activities:
- write a program to print random characters in a string
- use nested branches in a program
Resources
Read Ch. 3 of the zyBook (sections 3.1–3.6). You may work with others on the exercises. If you have questions, please talk with a classmate or post your question to Piazza under the "gi 6" tag.
Exercises
Complete the following. There is nothing to submit via Canvas; zyBook shows me what you've completed and when.
- carry out at least 80% of the "Participation Activities" (the orange ones) in the reading
- you can see how many of the participation activities you've done for a section or chapter using the "Reporting" tab on the main CSC160 zyBook page
- ask me or a classmate for help if you can't find it
- complete the following "Challenge Activities"
- 3.2.1: Enter the output for the if-else branches
- 3.2.2: Basic if-else expression
- 3.4.2: Equality and relational expressions
- 3.6.1: Multi-branch if-else statement: Print century
If you have a question while you are doing this, please post to the class Piazza board with the "gi 6" tag.
Rubric
Criteria | Ratings | ||
---|---|---|---|
80% of Participation activities in the assigned reading completed
|
|
||
A reasonable attempt made at Challenge Activity 3.2.1
|
|
||
A reasonable attempt made at Challenge Activity 3.2.2
|
|
||
A reasonable attempt made at Challenge Activity 3.4.2
|
|
||
A reasonable attempt made at Challenge Activity 3.6.1
|
|
||
|