An assignment in the Programming with C++ course. Goal