Homework 2, Multiple Files.

Short Description:

Explore placing code in multiple files.

Goals

When you finish this homework, you should have:

Formal Description

For this homework you will build a library to deal with numbers in Hexadecimal or base 16.

  1. Begin by creating the header file Hex.h
  2. Create the implementation file Hex.cpp
  3. Modify a Makefile to compile this.
  4. Write a simple test driver in hexTest.cpp
  5. Add the function IntToHex to the files.
  6. Add the function HexToInt to the files
  7. Build simple calculator.

Required Files

A single tar or zip file containing the source code and makefile for this program.

Submission

Submit the assignment to the D2L folder Homework 2 by the due date.