CSC 222 Weekly Assignments: Week 7

CSC 222


Overview

This week we will finish our introduction to structures and end the week by introducing a major C++ topic that will be new to students whose programming experience is mainly limited to Python or Java, pointers.

Friday, October 16th

Classwork / Homework

I'm out today, but I made sure we We'll begin class with the promised quiz on chapter 7.

The we dive into the topic we've all been waiting for, pointers!

We'll make a first pass through Chapter 8: Pointers and arrays today, compiling and running the examples as we go.

We'll want to read and re-read this chapter several times, since experience suggests it will take awhile for the concept of a pointer, and the intimate relationship in C++ between pointers and arrays to sink in. We have allocated enough time in our planning calendar to do this.

Wednesday, October 14th

Classwork

You'll get back your Chapter 6 Quiz today, and we'll go over it. The grade distribution was: A: 4, B+: 3, B: 2, C+: 2, C: 3, D+: 2, D: 2, E: 4. There will be several questions on the CPE exam involving string operations, so if you did not score well here you have some work to do.

Grades for the doctest exercises in your git repos were: A: 9, B: 2, C: 3, D: 3, and E: 4. We'll talk briefly about how to interpret these results.

Next we'll take a look at How do I calculate the value of sizeof(struct) in C?.

You'll have the rest of the class period and your homework time to work as many exercises as time permits from Chapter 7 Exercise Set 0: Chapter Review and Chapter 7 Exercise Set 1: CPE Practice.

Homework

Work as many chapter 7 exercises as time permits, being sure to commit your work to your git repo. Come to class Friday prepared for a quiz on this material.