Wednesday, December 10, 2008

ABSTRACT

The caluculator program is the java code that generates a caluculator window with digits 0 to 9 and the symbols used for calculating purpose such as '+','-','/','*','%','1/x','=','sqrt',and'.'. There are speial keys such as backspace, ce(clear), and c(cancel). A text area is used for taking the numbers as input and also to display the result of calculation. The user can input the digits using the numbered buttons(digits) and perform calculations as per the requirement using the operator buttons and by clicking "=" symbol the result is displayed. All these components of the calculator window are added to the panel implementing GridLayout. The calculator application coded may be used for simple calculations and can be extended for further mathematical calculations.

IMAGE

click on the image to view output

code

click here to view source code