CS 372 Spring 2016 > Assignment 4
CS 372 Spring 2016
Assignment 4
Assignment 4 is due at 5 pm Tuesday, May 3. It is worth 20 points.
Procedures
This assignment is to be done individually.
Turn in answers to the exercise below on the UAF Blackboard Learn site, under Assignment 4 for this class.
- I may not look at your homework submission immediately. If you have questions, e-mail me.
Exercises (20 pts total)
Exercise A — Implementing a New Design Pattern
Purpose
In this exercise you will research an OO design pattern on your own and implement it in a C++ program.
To Turn In
Your submission on Blackboard should include the following.
- The URL of your Git repository.
- A short description of what you did: design pattern implemented, what your program does.
- A list of the resources you used: books, websites, etc.
Instructions
Write a complete C++ program that uses either the Proxy or the Chain of Responsibility design pattern. Note: We have not discussed these patterns in class. Store your code in a Git repository.
- Your program may do anything you like.
- The code involving the OO design pattern must be an integral part of the program; that is, it must actually be used.
- Your program should be high-quality
(think Clean Code).
Make sure your code is well designed,
uses separate
header
andsource
files, and uses proper software design principles. - Base classes must be defined in separate files from derived classes.