Consider the following Python code snippet: x = 15
y = 10
print(x % y) (a) Explain the purpose and functionality of the given Python code.
(b) Describe the values assigned to variables x and y and how they influence the output.
(c) Discuss the mathematical operation performed using % in the context of Python.
(d) Predict and explain the expected output of the print(x % y) statement.