write a simple code for calculator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chean
    New Member
    • Nov 2009
    • 2

    write a simple code for calculator

    Write a program that creates a simple calculator . The user enters two numbers in the text fields, Number 1 and Number 2. There are 4 buttons, labeled with “Add”, “Substract”, “Multiply” and “Divide”. When the user clicks any one buttons, the result of the operations to the two integers will be displayed in the Result text field. The program handles two kinds of exceptions:
    • NumberFormatExc eption if Number 1 or Number 2 were not an integer
    • ArithmeticExcep tion if Number2 were zero
  • swacidware
    New Member
    • Oct 2009
    • 2

    #2
    What have you done so far?

    Comment

    Working...