Question: Create a java class called Arithmetic that prints 4 arithmetic math problems. For each math problem that you create, write code that prints the
Create a java class called Arithmetic that prints 4 arithmetic math problems. For each math problem that you create, write code that prints the original arithmetic expression and then shows the answer on the same output line. Each expression should have a minimum of 4 operations. For example, an expression may look like this: 6+5*6-9/2 Your program output would look like this: 6+5*6-9/2=32 Each of the 5 operations (+, -, *,/, %) should be used at least once in your program. They do not all need to be used in each expression. Your output statement should evaluate the expression which means you will not type the actual answer. The answer will be evaluated when you compile and run your code.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
