asked 32.9k views
1 vote
Hanna specifies the constants 7, 3, 3, and 5 as the arguments of a function. The function returns the result 18. Which function does Hanna use?

a) f(x, y, z, w) = x + y + z + w
b) f(x, y, z, w) = x × y × z × w
c) f(x, y, z, w) = x + y × z - w
d) f(x, y, z, w) = x × y + z - w

asked
User CFou
by
7.7k points

1 Answer

6 votes

Final answer:

Hanna specifies constants for a function and the function returns a result. By substituting the constants into each option, we find that option d) is the correct function.

Step-by-step explanation:

Hanna specifies the constants 7, 3, 3, and 5 as the arguments of a function. The function returns the result 18. By looking at the options given, we can determine the function by substituting the constants into each option. Only option d) f(x, y, z, w) = x × y + z - w satisfies the given conditions. Let's substitute the constants into this option:

  1. f(7, 3, 3, 5) = 7 × 3 + 3 - 5
  2. f(7, 3, 3, 5) = 21 + 3 - 5
  3. f(7, 3, 3, 5) = 24 - 5
  4. f(7, 3, 3, 5) = 19

As we can see, when we substitute the given constants into option d), we get the result 19, which is not equal to 18. Therefore, the correct answer is d) f(x, y, z, w) = x × y + z - w.

answered
User Sergio Morales
by
8.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.