def my_func(x, y=2):
z = (x**2 + y**2) / (x * y)
return z
print(my_func(2,4))2.5
Questions being corrected: 1, 3.a, 5
Correct answer: C - Carry out the plan
Why this answer is correct: The code portion of the homework is where do the work that accomplishes what the homework problem is asking for.
Correct answer: In the simulation phase, we do calculations with the model. We vary the input parameters (like temperature, pressure, flow rate) and the model outputs predicted system responses.
Correct answer: C - 2.5
Why this answer is correct: See the code below.
def my_func(x, y=2):
z = (x**2 + y**2) / (x * y)
return z
print(my_func(2,4))2.5