Home
Up
 

Basic Calculator

Make your own calculator which has the following functions:

bulletAddition, Subtraction, Multiplication, Division
bulletPower, Log, Factorial n
bulletSine, Cosine, Tangent
bulletSquare Root (includes complex roots)

Initial Design Thoughts:

bulletWhat functions to implement?
bulletAdd, subtract, multiply, divide,
bulletSquare root, power, factorial, Ln
bulletSin, Cosine, Tangent
bulletWarnings for division by 0
bulletWarnings for ln(0)
bulletTwo views simple and Scientific
bulletHow will it operate (cumulative functionality?
bulletClear function
bulletUse menu editor to change views

Form layout and controls are shown below:

Control Objects Required:

bulletForms: FrmCalculator
bulletLabels: LblAns
bulletTextboxes: TxtInput, TxtPower
bulletCommand buttons: CmdAdd, CmdReset, CmdExit, CmdClear

Control Properties:

Control Name Properties and Assigned Default Values
   
   

Typical Code: