Calculator

Introduction

Create an application that allows the user to enter two numbers and then
select the operator (+, -, *, /, ^, \, Mod). Selecting an operator
should display the result of the calculation. You will need an event
routine for each of the option buttons that declares variables,
calculates numbers, and displays the result. Use comments. Include
a change event procedure that clears the answer label when the user
types a new value for either number.

Important features

  • Seven working operators
  • Change event clears previous result
  • Option buttons with click event
  • Proper indents, spacing, comments

Example