A10.1-R4: INTRODUCTION TO OBJECT ORIENTED PROGRAMMING THROUGH JAVA.
Assignment 4
Design a
Calculator using Java Applet/Swing. The display should have all the digit
buttons
along with
buttons for operations +,-,*, / and =. There is a designated panel to show the
current
results. If a digit button is clicked, the number is displayed on the panel. If
an
operator
button is clicked the operation is to be performed. The calculator can operate
in
two modes.
a. When, the operator buttons are pressed the
intermediate results should be
displayed.
b. The operations can take in any number of arguments and
the final result is
displayed only when the = button is pressed.
No comments:
Post a Comment