Homework 3, A multiple base calculator.

Short Description:

Write a calculator that works with numbers in different bases.

This assignment is worth 20 points.

Goals

When you finish this homework, you should:

Formal Description

Write a simple calculator to perform computations on numbers in different bases.

Your program should support the following operations:

For the following define: You may assume that there will be no errors

To add two numbers

The same applies to multiply, but multiply instead of add.

For Convert

For Comparison For Quit If the input is
1100 2 + A 16 = 5
1100 2 * A 16 = 5
1100 2 % 12
1100 2 < A 16
1100 2 > A 16
1100 2 =  A 16
!
Your output should be.
42
440 
10
FALSE
TRUE
FALSE

Discussion

Required Files

The source code in a single file.

Submission

Email your source code file as an attachment to danbennett360@gmail.com. Make sure that the title indicates that this is homework3 and that your name and section are included in the body of the message.