Guided Inquiry 25: zyBook Ch. 9.1, 9.5, 9.6 + specified exercises
- Due Apr 22, 2020 by 9am
- Points 1
- Submitting a file upload
- File Types cpp
- Available after Apr 17, 2020 at 9am
Overview
The purpose of this guided inquiry is to introduce you to streams in general and file input streams specifically.
Learning Objectives
Basic learning objectives
By the end of this Guided Inquiry, you should be able to:
- describe what a stream is
- describe the difference between input and output streams
- classify what type of streams cin and cout are
- open a file for reading
- check that a file is open
- read data from a file
Advanced learning objectives
By the end of our next class meeting, you should be able to:
- read lists of data from files
- read tables of data from files
- read struct data from files
Resources
Reference zyBook sections 9.1, 9.5, and 9.6 as needed to complete the specified exercises. 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 25" tag.
Exercises
Attempt the following. Spend no more than 20 minutes each (unless you want to).
- complete at least 80% of the Participation Activities in each section 9.1, 9.5, and 9.6 of the zyBook
- download this zip file of exercises and data files
Download this zip file of exercises and data files and complete:
- what this video for how to use Visual Studio Code to complete the exercises and run tests for each one Links to an external site. (zyLabs don't support writing to files)
- gi25.1.cpp (requires data.txt)
- gi25.2.cpp
- gi25.3.cpp
- post one or more questions to the class Piazza board with the "gi 25" 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)—please include specific questions rather than just the number of the challenges you want to see done.
Upload the three .cpp files with your attempted solutions (no pictures this time).
Rubric
Keep in mind that 5 students have already been assessed using this rubric. Changing it will affect their evaluations.
Criteria | Ratings | ||
---|---|---|---|
You engaged with 80% of the Participation Activities in each of the specified zyBook sections.
|
|
||
You submitted a reasonable attempt at gi25.1
|
|
||
You submitted a reasonable attempt at gi25.2
|
|
||
You submitted a reasonable attempt at gi25.3
|
|
||
|