COSC-052: Computer Science II

Project 5 (Whoo hoo!)
Spring 2013

Due: Mon, Apr 29 @ 5 PM
10 points

This project involves implementing a re-sizable Vector ADT using a dynamically-allocated C-style array.

  1. I placed the class definition for Vector<T> on cs-class, which you can retrieve with the commands:
    cs-class% cd
    cs-class% mkdir p5
    cs-class% cd p5
    cs-class% cp ~maloofm/cosc052/vector.txt ./
    
    This should copy vector.txt the current directory, which you should use as the basis for vector.h.

  2. Use a dynamically-allocated C-style array to implement the Vector<T> class.

    Documentation: [ html ]

  3. Test your implementation of the Vector<T> class in main.cc. However, we will use our own main function to evaluate your classes. Consequently, you must not modify the class names or the public interfaces. Our main.cc will include only main.h, so put all necessary includes there. You should not need to declare any additional methods or data members. Include a Makefile with your submission.

Getting Started

Instructions for Electronic Submission

At the top of the file main.cc (or the file containing the main function), place the following header comment, with the appropriate substitutions:

/*
 * COSC-052 Project 5
 * Name: <your name>
 * ID: <GoCard ID>
 * E-mail: <e-mail address>
 * Instructor: Maloof
 *
 * In accordance with the class policies and Georgetown's Honor Code,
 * I certify that, with the exceptions of the class resources and those
 * items noted below, I have neither given nor received any assistance
 * on this project.
 */

You'll be submitting p5 exactly like you submitted p4. If you need to include a message about your submission, then place the message in a file named README. Place the README file in the project's directory.

Copyright © 2019 Mark Maloof. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.