Governor's Career & Technical Academy Arlington

CSC 222 Weekly Assignments: Weeks 16 and 17

CSC 222


Overview

Since we only have one day of class (Monday, December 18th) during week 17, we'll combine weeks 16 and 17 here. We will continue our focus on creating doctested classes in C++.

Monday, December 18th

Classwork / Homework

Akshay, Trostin, Johan, Caleb, and Turner have agreed to take on the challenge of porting the Think Java 2e card game code to C++ for our introduction of inheritance

I will be downloading Duriation.h and Duration.cpp for Dane, Shangwen, Ved, Jackson, Liam, Anar, Marin, James, Fikir, Jamethiel, Isaac and Adonis beginning Thursday morning.

Thursday, December 14th

Classwork

At the beginning of last class, several additional students were able to demonstrate a Points class that passed all my doctests, bringing this group to include: Parker, Cody, Johan, Luis, Trostin, Turner, Anfal, Ivan, Akshay, Marin and Caleb.

As mentioned, you all get an automatic bye week on the next assignment, as you will automatically receive credit for it. That said, at least one of you has very wisely told me they feel they need more practice with this, and as elected to do the Duration assignment.

I am looking for a few volunteers from among the bye group to help with translating the Java code from the end of chapter 13 through chapter 17 of Think Java 2e into C++. Nate Levin from my 3rd year class is taking the lead on this, but he could use some help. I promise to list the folks who make a significant contribution to this effort either in the Contributor List or even possibly as one of the co-authors, if the contribution is really significant.

I need the card game code from chapters 13 and 14 by the beginning of Winter break, so that I can use it to finish the inheritance chapter over the break for us to use in January.

Please let me know today if you are interested in working on this project.

Homework

As promised last class, test_durations.cpp has been updated with the complete set of tests you will need to pass. Given that you will not have any homework over the Winter break, I've extended the due date for this assignment to next Wednesday.

This assignment is due at 11:59 pm on Wednesday, December 20th.

Tuesday, December 12th

Classwork

The following folks implemented a Point class that passed all the tests in test_points.cpp: Cody, Johan, Trostin, Turner, Ivan, and Caleb.

I made a copy of each of your solutions, but I haven't had the chance to look through them in detail yet. That said, since it seems you have the process of writing a class to pass provided tests down, I will have a different assignment for you this week.

For everyone else, I want to give you more practice, so you will be asked to create a Duration class that implements part of the ISO 8601 standard.

Specifically, it should pass all the tests in test_durations.cpp.

NOTE: this test file will be updated with more tests between now and the start of class on Thursday. So you can begin with the current tests (which will remain), but incorporate the additional tests during Thursday's classwork and homework.

Homework

This assignment is due at 11:59 pm on Wednesday, December 20th.

Resources