Guided Inquiry 3: zyBook Ch. 2.7–2.12 + exercises
- Due Feb 2, 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:
- use a floating point literal in scientific notation
- formatting how floating point numbers are displayed (setprecision)
- distinguish between constants, variables, and literal values
- implement arithmetic expressions with variables and literals
- implement code that uses math library functions
Advanced learning objectives
You should demonstrate mastery of the following objectives by the end of the next class meting through the in-class activities:
- using integer division and rounding in a program
- explain the difference between integer and floating point division in C++
- using the modulo operation to calculate remainders
Resources
Read Ch. 2 of the zyBook (sections 2.7–2.12). 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 3" tag.
Exercises
Complete the following. There is nothing to submit via Canvas; zyBook shows me what you've completed and when.
- finish Class Activity 2: Command Line & Variables (individually or with your group)
- 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" (don't spend more than ~20 minutes on each)
- 2.9.1: Using constants in expressions
- 2.12.1: Type casting: Computing average kids per family
- complete zyLab 2.26: Caffeine levels
If you have a question while you are doing this, please post to the class Piazza board with the "gi 3" tag.
Rubric
Criteria | Ratings | ||
---|---|---|---|
80% of Participation activities in the assigned reading completed
|
|
||
A reasonable attempt made at Challenge Activity 2.9.1
|
|
||
A reasonable attempt made at Challenge Activity 2.12.1
|
|
||
A reasonable attempt made at zyLab 2.26
|
|
||
Completed Class Activity 2
|
|
||
|