Question: Create a basic calculator in Java (50 points). For this problem, the only operations we can perform are addition (+), subtraction (-), multiplication, (*), and
"Create a basic calculator in Java (50 points). For this problem, the only operations we can perform are addition (+), subtraction (-), multiplication, (*), and division (/). The symbols previously listed are the only ones that your program should allow.
Additionally, our calculator can handle parentheses (). Remember PEMDAS from your previous math classes. Solve what is in the parentheses first, then multiplication/division, then addition/subtraction.
Your program should take a string of numbers, parentheses, and operators from the user and return the result of the expression. You must use a stack to implement your solution, and your program must solve the expression according to PEMDAS."
...
I'm having trouble finding where to even start here. Someone please help me out!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
