Grace Hopper Center

CSC 222 Weekly Assignments: Week 6

CSC 222


Overview

This week we will begin exploring a major C++ topic that will be new to students whose programming experience is mainly limited to Python or Java, pointers.

Wednesday, October 1st

Classwork

We'll begin class with a short quiz on Chapter 8. Then we dive into the topic we've all been waiting for, pointers!

We'll make a first pass through Chapter 9: 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.

It may also be helpful to take another CPE practice test next class. Let's discuss this today. Lastly, I found a very good resource to explain what is going on with Structure Padding in C++.

Homework

Complete the exercises in Chapter 9 Exercise Set 0: Chapter Review and Exploration.

Let's select 5 pairs of students in class who volunteer to choose one of the 5 exercises in this exercise set who can prepare a presentation of a good solution to the exercise in class next Monday.

Presentations will be evaluated using this rubric. Students who don't present this round will present exercises from the next set during the following class.

Monday, September 29th

Classwork

We will begin class with a quiz based on Chapter 7 Exercise Set 1: CPE Practice.

After the quiz we'll discuss Chapter 8: Structures.

We'll take a look at How do I calculate the value of sizeof(struct) in C? and do the chapter 8 exercises related to it.

Homework

Complete both Chapter 8 Exercise Set 0: Chapter Review and. Chapter 8 Exercise Set 1: CPE Practice in preparation for a short quiz at the beginning of class on Monday.