0
Hi guys please help me with this I can't even understand the direction thanks for helping may all your wishes come true if ever
Assessment Part 1: Let's Do the Math! Directions: Evaluate the following expressions or indicate why they are invalid if an illegal operator is used with the incorrect operand, and then determine the appropriate data type. Expression 1. (16 - 4) / 5 Result Data Type 2. 8+14\% 10 - 2 3. 20/3/4.0 0.8 \ 5.5 * 3 -6\%3+7 6. 42 /3\%7 7. 18 /4^ * 4.0 8. (10 - 3) / 2 + 1 overline 9 * 0.2 * 0.5 + 1.25 * 2 10. 63 \\%4 Part 2: Using a Java program, evaluate the given expression, assuming that, x = 5 y = 6 , w = 3.5 , and z = 2 Then write the output on your paper. 1. (x + z) \% y 7 2. (x + y) \% 3. (y + w) \%x 4. (x % y) % Z 5. (x + y) deg * w
2 Respuestas
+ 3
Part 1.
Is the expression written correctly?
If yes, what result do you calculate?
What is the data type of the result? (There are 2 - 3 to choose from)
Part 2.
Looks a bit like the questions of Part 1, but written in Java.
+ 1
I see a lot of this symbol \% in the Description. Were they only typos though frequent - or were their presence there intentional to test your code?