CS 202 Fall 2013  >  Assignment 5

CS 202 Fall 2013
Assignment 5

Assignment 5 is due at 2 p.m. Monday, October 21. It is worth 30 points.

Procedures

Complete each of the exercises below. Then turn in your work as follows.

  1. Run Check. Demonstrate the code you have written for the exercises below to either the instructor (Glenn G. Chappell) or the T.A. (Zak Williams). Get official approval.
  2. Submission. Submit your code using Blackboard, under Assignment 5 for this class. You should only submit code that has already passed the Run Check. Be sure you attach your source/header files; do not paste them into the text box. Also, send only source & headers; no project files or executables.

We may not look at your homework submission immediately. If you have questions, e-mail me.

Exercises (30 pts total)

Do each of the following exercises. Coding standards are as on Assignment 3.

Exercise A—Collection of Similar Classes, But Now with—Polymorphism!

Redo Assignment 4 Exercise B using inheritance and virtual functions. (And throw out your driver program.)

Test Program

A test program is available: fancyprint_test.cpp. If you compile and run this program (unmodified!) with your code, then it will test whether your code works properly.

Notes & Misc Requirements

Exercise B—File Filter

Do problems 9–10 in the Chapter 15 Programming Challenges (p 942), with the following changes.

Notes


CS 202 Fall 2013: Assignment 5 / Updated: 19 Oct 2013 / Glenn G. Chappell