Answer:
1) if Line AB is parallel to line CD then value of a is: a=3
2) if Line AB is perpendicular to line CD then value of a is: a=1
Explanation:
We are given A(3,5), B(7, 10), C(0, 2), and D(1, a) we need to find value of a for which:
We can use slope formula:
to find value of a according to conditions given.
We are given:

a) Line AB is parallel to line CD.
When 2 lines are parallel there slope is same so, using this we can find value of a


So, if Line AB is parallel to line CD then value of a is: a=3
b) Line AB is perpendicular to line CD.
When 2 lines are perpendicular there slopes are opposite of each other so, using this we can find value of a


So, if Line AB is perpendicular to line CD then value of a is: a=1