Final answer:
The values of the expressions are -12.5 and 6.5.
Step-by-step explanation:
To find the values of the expressions, we need to substitute the given values for the variables. Let's evaluate each expression step by step:
- Expression 1: x + n*y - (x+n)*y
- Substituting the given values, we have:
- 2.5 + 4*(-1.5) - (2.5+4)*(-1.5)
- Simplifying the expression:
- 2.5 - 6 + 6*(-1.5)
- 2.5 - 6 - 9
- = -12.5
- Expression 2: m/n + m%n
- Substituting the given values, we have:
- 18/4 + 18%4
- Simplifying the expression:
- 4.5 + 2
- = 6.5