Site hosted by Angelfire.com: Build your free website today!

Calc1
Home Up Calc1 Tables

 

For our first practice example, we will create a simple calculator.  This calculator is very simple.  It can only add, subtract, multiply and divide.  It depends upon your keyboard to enter input.  In a future example, we will create a calculator that looks much like the calculators you have used in the past.

Our calculator has two boxes, each for entering a value.  The operator is determined by pressing the radio button corresponding to the operation we wish to perform.  The result is displayed in a label box to the right of the equals sign.

Below is a graphic showing what our simple calculator dialog box should look like:

You can run an example of the above dialog by downloading this file.

When you are down, you can check out my source code here.