Answer:
See attached file.
Explanation:
See attached file for detailed code.
d
because all in one question form