construct and evaluate an arithmetic expression, as follows: Your expression must contain at least 5 different operators, including at least one division and one modulo (remainder) operator. Start with an expression that contains no parentheses. Fully parenthesize the expression to show the operator precedence. Show each step that Java would take to evaluate the expression and give the final answer that the expression would evaluate to. Your expression should be unique and cannot be an expression that is in the course notes, textbook, homework programming assignment, or that has been previously posted in the forum by another student. these are examples 28 * 6 % 5 + 40 - 2 / 2 ((((28 * 6) % 5) + 40) - (2 / 2)) Step 1: (28 * 6) = ((168 % 5) +40) - (2 / 2) Step 2: (168 % 5) = (3 + 40) - (2 / 2) Step 3: (2 / 2) = (3 + 40) - 1) Step 4: (3 + 40) = (43 - 1) Step 5: (43 - 1) = 42
Get Free Quote!
427 Experts Online