Grace Hopper Center

CSC 222 Weekly Assignments: Week 8

CSC 222


Overview

We have now learned all of the C++ that we need for the CPE certification, and we have results from the test you took last week that was aligned with it. We will now spend all homework time during the next two weeks preparing for and then taking the C++ Certified Entry-Level Programmer Certification (CPE) exam. During class we will begin our transition to the post-CPE project based learning approach we will be using for the rest of the course.

I'll be looking for volunteers to take the CPE certification early, so please let me know as soon as you feel you are ready.

Thursday, October 16th

Classwork / Homework

The grade distribution on the last practice test was A:6, B:1, C:1, D:0, E:3. Six of you earned A's, and I believe you are ready to take the CPE during class next Monday. Chris Jones has agreed to proctor and has already found a place for you to test.

The rest of you will take another practice test during that time. Please keep studying the three practice tests you should now have in your possession, looking for the common themes among the questions you got wrong, and using that reflective analysis to know what to ask for help with during our review sessions.

Today we'll take a short break from test prep and use Appendix C: A development environment for unit testing to configure our computers for C++ development.

As part of this process we will be introduced to test-driven development and the doctest testing framework.

After we get setup we will use the rest of time available in class to pair up and work on the following programming project:

Forwards and Backwards

Pair with a classmate and use TDD to complete the following. Let's make three pairs from the six of you taking the CPE on Monday, since if you earn the certificate then (and I know you will!) you'll be done testing and ready to start writing programs next week.

Write a program that prompts the user to enter a sequence of integers on the command line, with each integer seperated by a space. Your program should then print out the numbers entered forwards and backwards.

Here is a sample run of the program:

Enter a sequence of numbers, separated by spaces and terminated with Enter:
1 11 42 8 2 29 12 7

Your numbers were:
1 11 42 8 2 29 12 7

Your numbers backwards are:
7 12 29 2 8 42 11 1

Tuesday, October 14th

Classwork

We'll begin class with the last CPE practice test we will take during class. If you feel you need additional practice, I have three more practice tests available that you can get by coming in either next Saturday between 9 am and 12 noon, or before school Monday to Friday between 7:15 and 8 am, or after school Tuesday, Wednesday or Thursday between 3 and 4:30 pm.

After the test we will have discussion of Chapter 10: Vectors. We will introduce object-oriented ideas that vectors embody, including templates , containers and iterators. We'll be introduced to several of the member functions of vectors, including three different constructors, size and data.

Homework

Study the five exercises in Chapter 10 Excercise Set 1: CPE Practice making sure you understand all the C++ language features displayed in them.