Convert the ff phrase into programming notation.
1. X is half of Y
2. sum of A and B
3. average of X,Y and Z
4. A is 5% of B
5. subtract Y from X
6. square of the sum of X and Y
7. sum of the square of A and B
8. A is twice the value of C
9. difference between the square of B and the sum of A and C
10. sum of the difference between A and B and the product of X and Y