Using Java language 1. Purpose of the programming : [Integer calculator Program
ID: 3680469 • Letter: U
Question
Using Java language
1. Purpose of the programming : [Integer calculator Program based on GUI] You will write a calculator program for integer numbers for this homework
The calculator should be able to do addition, subtraction, multiplication, and division for integer numbers. The calculator will take receive an equation composed of +, -, *, /, and several integers through GUI, and its result is outputted over the GUI.
2. Requirements of input Possible operators are addition(+), subtraction(-), multiplication(*), and division(/). And, parentheses (‘(‘,’)’) is also possible.
Integers as operands should be positive. Negative integer can be represented in the form of ( 0 – positive number ). For example, -4 is represented as ( 0 – 4 ). Likewise -8 as ( 0 – 8 ) There should exist at least one blank (‘ ‘) between every integer, operator, and parenthesis.
Correct example: ( 2 + 4 ) * 5
Wrong example : (2+4) * 5