Guided Inqury 2: zyBook Ch. 2.1–2.6 + excercises
- Due Jan 30, 2020 by 10pm
- Points 1
Overview
The purpose of this reading and exercise set is to acquaint you with the basics of C++ variables.
Learning Objectives
Basic learning objectives
You are responsible for learning and demonstrating proficiency in the following objectives prior to the next class meeting:
- describe how to declare, assign, and use variables in a C++ program
- assign the result of arithmetic expressions to variables
- distinguish between valid and invalid variable names (identifiers)
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 the order of operator precedence
- explain what happens during a variable assignment
- write code to copy the value of one variable to another
- write a program to perform arithmetic operations on user input
Resources
Read Ch. 2 of the zyBook (sections 2.1–2.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 2" 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"
- 2.2.3: Declaring and initializing variables
- 2.5.1: Compute an expression
- 2.5.2: Total cost
If you have a question while you are doing this, please post to the class Piazza board with the "gi 2" tag.
Rubric
Criteria | Ratings | ||
---|---|---|---|
80% of Participation activities in the assigned reading completed
|
|
||
A reasonable attempt made at Challenge Activity 2.2.3
|
|
||
A reasonable attempt made at Challenge Activity 2.5.1
|
|
||
A reasonable attempt made at Challenge Activity 2.5.2
|
|
||
|