Computer Organization
Computer Science 251
Dickinson College

Spring Semester 1997
TTh 2:00 - 3:15
South College 04

Project #3 - Base Conversion and Data Representation

Due 2/20/97

Introduction:

In this project you will be writing functions that convert between base2 and base10 numbers. While our simulated computer will not use these functions in their hardware it will make it easier for us to interact with the computer. You will also get practice using the BitData class which will be the primary means for passing information between the components of our computer (It will be the wires between our components.)

The Project resource page contains links to UNIX and C++ references that you may find helpful.

Files For This Project:

If you need to know how and where to get these files refer to the documentation for Project #1.

New Files:

BaseConv.h
Defines the 3 functions ToBase2, ToBase10 and TwosComp that are needed to convert positive and negative integers between base2 and base10 representations.
InfoTypes.h
Defines the class BitData that will be used to manipulate multiple bit information. This includes passing data between the components of our computer. Defines an overloaded insertion operator for the BitData class.
InfoTypes.cpp
Implements the member functions of the BitData class. Also implements the overloaded insertion operator for BitData so cout << can be used with BitData types.
Files From Past Projects:

From Project #1.
From Project #2.

The Assignment:

I have broken this project up into 4 parts. It seems to me that it would be logical to do the first part of the project and check to see if it works then proceed to the second part. After checking the second part then do the third part. You are however, entitled to proceed in any manner you find suitable.

Submitting Your Solution:

For this project you need to submit 3 files.

If you need to refresh your memory on how to submit the files refer to the Project #1 documentation.


These pages designed and maintained by Grant Braught
Braught@Dickinson.edu